diff --git a/librespot/audio/decoders/AudioQuality.py b/librespot/audio/decoders/AudioQuality.py index 9ffa731..73d7586 100644 --- a/librespot/audio/decoders/AudioQuality.py +++ b/librespot/audio/decoders/AudioQuality.py @@ -12,18 +12,18 @@ class AudioQuality(enum.Enum): @staticmethod def get_quality(audio_format: AudioFile.Format) -> AudioQuality: if audio_format == AudioFile.MP3_96 or \ - audio_format == AudioFile.OGG_VORBIS_96 or \ - audio_format == AudioFile.AAC_24_NORM: + audio_format == AudioFile.OGG_VORBIS_96 or \ + audio_format == AudioFile.AAC_24_NORM: return AudioQuality.NORMAL if audio_format == AudioFile.MP3_160 or \ - audio_format == AudioFile.MP3_160_ENC or \ - audio_format == AudioFile.OGG_VORBIS_160 or \ - audio_format == AudioFile.AAC_24: + audio_format == AudioFile.MP3_160_ENC or \ + audio_format == AudioFile.OGG_VORBIS_160 or \ + audio_format == AudioFile.AAC_24: return AudioQuality.HIGH if audio_format == AudioFile.MP3_320 or \ - audio_format == AudioFile.MP3_256 or \ - audio_format == AudioFile.OGG_VORBIS_320 or \ - audio_format == AudioFile.AAC_48: + audio_format == AudioFile.MP3_256 or \ + audio_format == AudioFile.OGG_VORBIS_320 or \ + audio_format == AudioFile.AAC_48: return AudioQuality.VERY_HIGH raise RuntimeError("Unknown format: {}".format(format)) diff --git a/librespot/proto/Canvaz.py b/librespot/proto/Canvaz.py index 2848283..d138e2d 100644 --- a/librespot/proto/Canvaz.py +++ b/librespot/proto/Canvaz.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: canvaz.proto """Generated protocol buffer code.""" +import CanvazMeta as canvaz__meta__pb2 from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -10,7 +11,6 @@ from google.protobuf import symbol_database as _symbol_database _sym_db = _symbol_database.Default() -import CanvazMeta as canvaz__meta__pb2 DESCRIPTOR = _descriptor.FileDescriptor( name='canvaz.proto', @@ -18,8 +18,7 @@ DESCRIPTOR = _descriptor.FileDescriptor( syntax='proto3', serialized_options=b'\n\022com.spotify.canvazH\002', create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n\x0c\x63\x61nvaz.proto\x12\x17\x63om.spotify.canvazcache\x1a\x11\x63\x61nvaz-meta.proto\"3\n\x06\x41rtist\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0e\n\x06\x61vatar\x18\x03 \x01(\t\"\xe1\x02\n\x14\x45ntityCanvazResponse\x12\x46\n\x08\x63\x61nvases\x18\x01 \x03(\x0b\x32\x34.com.spotify.canvazcache.EntityCanvazResponse.Canvaz\x12\x16\n\x0ettl_in_seconds\x18\x02 \x01(\x03\x1a\xe8\x01\n\x06\x43\x61nvaz\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\x12\x0f\n\x07\x66ile_id\x18\x03 \x01(\t\x12&\n\x04type\x18\x04 \x01(\x0e\x32\x18.com.spotify.canvaz.Type\x12\x12\n\nentity_uri\x18\x05 \x01(\t\x12/\n\x06\x61rtist\x18\x06 \x01(\x0b\x32\x1f.com.spotify.canvazcache.Artist\x12\x10\n\x08\x65xplicit\x18\x07 \x01(\x08\x12\x13\n\x0buploaded_by\x18\x08 \x01(\t\x12\x0c\n\x04\x65tag\x18\t \x01(\t\x12\x12\n\ncanvas_uri\x18\x0b \x01(\t\"\x88\x01\n\x13\x45ntityCanvazRequest\x12\x45\n\x08\x65ntities\x18\x01 \x03(\x0b\x32\x33.com.spotify.canvazcache.EntityCanvazRequest.Entity\x1a*\n\x06\x45ntity\x12\x12\n\nentity_uri\x18\x01 \x01(\t\x12\x0c\n\x04\x65tag\x18\x02 \x01(\tB\x16\n\x12\x63om.spotify.canvazH\x02\x62\x06proto3', + serialized_pb=b'\n\x0c\x63\x61nvaz.proto\x12\x17\x63om.spotify.canvazcache\x1a\x11\x63\x61nvaz-meta.proto\"3\n\x06\x41rtist\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0e\n\x06\x61vatar\x18\x03 \x01(\t\"\xe1\x02\n\x14\x45ntityCanvazResponse\x12\x46\n\x08\x63\x61nvases\x18\x01 \x03(\x0b\x32\x34.com.spotify.canvazcache.EntityCanvazResponse.Canvaz\x12\x16\n\x0ettl_in_seconds\x18\x02 \x01(\x03\x1a\xe8\x01\n\x06\x43\x61nvaz\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\x12\x0f\n\x07\x66ile_id\x18\x03 \x01(\t\x12&\n\x04type\x18\x04 \x01(\x0e\x32\x18.com.spotify.canvaz.Type\x12\x12\n\nentity_uri\x18\x05 \x01(\t\x12/\n\x06\x61rtist\x18\x06 \x01(\x0b\x32\x1f.com.spotify.canvazcache.Artist\x12\x10\n\x08\x65xplicit\x18\x07 \x01(\x08\x12\x13\n\x0buploaded_by\x18\x08 \x01(\t\x12\x0c\n\x04\x65tag\x18\t \x01(\t\x12\x12\n\ncanvas_uri\x18\x0b \x01(\t\"\x88\x01\n\x13\x45ntityCanvazRequest\x12\x45\n\x08\x65ntities\x18\x01 \x03(\x0b\x32\x33.com.spotify.canvazcache.EntityCanvazRequest.Entity\x1a*\n\x06\x45ntity\x12\x12\n\nentity_uri\x18\x01 \x01(\t\x12\x0c\n\x04\x65tag\x18\x02 \x01(\tB\x16\n\x12\x63om.spotify.canvazH\x02\x62\x06proto3', dependencies=[ canvaz__meta__pb2.DESCRIPTOR, ]) @@ -145,8 +144,7 @@ _ENTITYCANVAZRESPONSE_CANVAZ = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='file_id', - full_name= - 'com.spotify.canvazcache.EntityCanvazResponse.Canvaz.file_id', + full_name='com.spotify.canvazcache.EntityCanvazResponse.Canvaz.file_id', index=2, number=3, type=9, @@ -164,8 +162,7 @@ _ENTITYCANVAZRESPONSE_CANVAZ = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='type', - full_name= - 'com.spotify.canvazcache.EntityCanvazResponse.Canvaz.type', + full_name='com.spotify.canvazcache.EntityCanvazResponse.Canvaz.type', index=3, number=4, type=14, @@ -183,8 +180,7 @@ _ENTITYCANVAZRESPONSE_CANVAZ = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='entity_uri', - full_name= - 'com.spotify.canvazcache.EntityCanvazResponse.Canvaz.entity_uri', + full_name='com.spotify.canvazcache.EntityCanvazResponse.Canvaz.entity_uri', index=4, number=5, type=9, @@ -202,8 +198,7 @@ _ENTITYCANVAZRESPONSE_CANVAZ = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='artist', - full_name= - 'com.spotify.canvazcache.EntityCanvazResponse.Canvaz.artist', + full_name='com.spotify.canvazcache.EntityCanvazResponse.Canvaz.artist', index=5, number=6, type=11, @@ -221,8 +216,7 @@ _ENTITYCANVAZRESPONSE_CANVAZ = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='explicit', - full_name= - 'com.spotify.canvazcache.EntityCanvazResponse.Canvaz.explicit', + full_name='com.spotify.canvazcache.EntityCanvazResponse.Canvaz.explicit', index=6, number=7, type=8, @@ -240,8 +234,7 @@ _ENTITYCANVAZRESPONSE_CANVAZ = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='uploaded_by', - full_name= - 'com.spotify.canvazcache.EntityCanvazResponse.Canvaz.uploaded_by', + full_name='com.spotify.canvazcache.EntityCanvazResponse.Canvaz.uploaded_by', index=7, number=8, type=9, @@ -259,8 +252,7 @@ _ENTITYCANVAZRESPONSE_CANVAZ = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='etag', - full_name= - 'com.spotify.canvazcache.EntityCanvazResponse.Canvaz.etag', + full_name='com.spotify.canvazcache.EntityCanvazResponse.Canvaz.etag', index=8, number=9, type=9, @@ -278,8 +270,7 @@ _ENTITYCANVAZRESPONSE_CANVAZ = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='canvas_uri', - full_name= - 'com.spotify.canvazcache.EntityCanvazResponse.Canvaz.canvas_uri', + full_name='com.spotify.canvazcache.EntityCanvazResponse.Canvaz.canvas_uri', index=9, number=11, type=9, @@ -336,8 +327,7 @@ _ENTITYCANVAZRESPONSE = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='ttl_in_seconds', - full_name= - 'com.spotify.canvazcache.EntityCanvazResponse.ttl_in_seconds', + full_name='com.spotify.canvazcache.EntityCanvazResponse.ttl_in_seconds', index=1, number=2, type=3, @@ -378,8 +368,7 @@ _ENTITYCANVAZREQUEST_ENTITY = _descriptor.Descriptor( fields=[ _descriptor.FieldDescriptor( name='entity_uri', - full_name= - 'com.spotify.canvazcache.EntityCanvazRequest.Entity.entity_uri', + full_name='com.spotify.canvazcache.EntityCanvazRequest.Entity.entity_uri', index=0, number=1, type=9, diff --git a/librespot/proto/CanvazMeta.py b/librespot/proto/CanvazMeta.py index 5f4576d..cab3031 100644 --- a/librespot/proto/CanvazMeta.py +++ b/librespot/proto/CanvazMeta.py @@ -17,8 +17,7 @@ DESCRIPTOR = _descriptor.FileDescriptor( syntax='proto3', serialized_options=b'\n\022com.spotify.canvazH\002', create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n\x11\x63\x61nvaz-meta.proto\x12\x12\x63om.spotify.canvaz*R\n\x04Type\x12\t\n\x05IMAGE\x10\x00\x12\t\n\x05VIDEO\x10\x01\x12\x11\n\rVIDEO_LOOPING\x10\x02\x12\x18\n\x14VIDEO_LOOPING_RANDOM\x10\x03\x12\x07\n\x03GIF\x10\x04\x42\x16\n\x12\x63om.spotify.canvazH\x02\x62\x06proto3' + serialized_pb=b'\n\x11\x63\x61nvaz-meta.proto\x12\x12\x63om.spotify.canvaz*R\n\x04Type\x12\t\n\x05IMAGE\x10\x00\x12\t\n\x05VIDEO\x10\x01\x12\x11\n\rVIDEO_LOOPING\x10\x02\x12\x18\n\x14VIDEO_LOOPING_RANDOM\x10\x03\x12\x07\n\x03GIF\x10\x04\x42\x16\n\x12\x63om.spotify.canvazH\x02\x62\x06proto3' ) _TYPE = _descriptor.EnumDescriptor( diff --git a/librespot/proto/Context.py b/librespot/proto/Context.py index c50b5dd..a493f5d 100644 --- a/librespot/proto/Context.py +++ b/librespot/proto/Context.py @@ -2,6 +2,8 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: context.proto """Generated protocol buffer code.""" +import Restrictions as restrictions__pb2 +import ContextPage as context__page__pb2 from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -10,8 +12,6 @@ from google.protobuf import symbol_database as _symbol_database _sym_db = _symbol_database.Default() -import ContextPage as context__page__pb2 -import Restrictions as restrictions__pb2 DESCRIPTOR = _descriptor.FileDescriptor( name='context.proto', @@ -19,8 +19,7 @@ DESCRIPTOR = _descriptor.FileDescriptor( syntax='proto2', serialized_options=b'\n\023com.spotify.contextH\002', create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n\rcontext.proto\x12\x14spotify.player.proto\x1a\x12\x63ontext_page.proto\x1a\x12restrictions.proto\"\x90\x02\n\x07\x43ontext\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\x12=\n\x08metadata\x18\x03 \x03(\x0b\x32+.spotify.player.proto.Context.MetadataEntry\x12\x38\n\x0crestrictions\x18\x04 \x01(\x0b\x32\".spotify.player.proto.Restrictions\x12\x30\n\x05pages\x18\x05 \x03(\x0b\x32!.spotify.player.proto.ContextPage\x12\x0f\n\x07loading\x18\x06 \x01(\x08\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x17\n\x13\x63om.spotify.contextH\x02', + serialized_pb=b'\n\rcontext.proto\x12\x14spotify.player.proto\x1a\x12\x63ontext_page.proto\x1a\x12restrictions.proto\"\x90\x02\n\x07\x43ontext\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\x12=\n\x08metadata\x18\x03 \x03(\x0b\x32+.spotify.player.proto.Context.MetadataEntry\x12\x38\n\x0crestrictions\x18\x04 \x01(\x0b\x32\".spotify.player.proto.Restrictions\x12\x30\n\x05pages\x18\x05 \x03(\x0b\x32!.spotify.player.proto.ContextPage\x12\x0f\n\x07loading\x18\x06 \x01(\x08\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x17\n\x13\x63om.spotify.contextH\x02', dependencies=[ context__page__pb2.DESCRIPTOR, restrictions__pb2.DESCRIPTOR, diff --git a/librespot/proto/ContextPage.py b/librespot/proto/ContextPage.py index b852a73..4e23c80 100644 --- a/librespot/proto/ContextPage.py +++ b/librespot/proto/ContextPage.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: context_page.proto """Generated protocol buffer code.""" +import ContextTrack as context__track__pb2 from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -10,7 +11,6 @@ from google.protobuf import symbol_database as _symbol_database _sym_db = _symbol_database.Default() -import ContextTrack as context__track__pb2 DESCRIPTOR = _descriptor.FileDescriptor( name='context_page.proto', @@ -18,8 +18,7 @@ DESCRIPTOR = _descriptor.FileDescriptor( syntax='proto2', serialized_options=b'\n\023com.spotify.contextH\002', create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n\x12\x63ontext_page.proto\x12\x14spotify.player.proto\x1a\x13\x63ontext_track.proto\"\xef\x01\n\x0b\x43ontextPage\x12\x10\n\x08page_url\x18\x01 \x01(\t\x12\x15\n\rnext_page_url\x18\x02 \x01(\t\x12\x41\n\x08metadata\x18\x03 \x03(\x0b\x32/.spotify.player.proto.ContextPage.MetadataEntry\x12\x32\n\x06tracks\x18\x04 \x03(\x0b\x32\".spotify.player.proto.ContextTrack\x12\x0f\n\x07loading\x18\x05 \x01(\x08\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x17\n\x13\x63om.spotify.contextH\x02', + serialized_pb=b'\n\x12\x63ontext_page.proto\x12\x14spotify.player.proto\x1a\x13\x63ontext_track.proto\"\xef\x01\n\x0b\x43ontextPage\x12\x10\n\x08page_url\x18\x01 \x01(\t\x12\x15\n\rnext_page_url\x18\x02 \x01(\t\x12\x41\n\x08metadata\x18\x03 \x03(\x0b\x32/.spotify.player.proto.ContextPage.MetadataEntry\x12\x32\n\x06tracks\x18\x04 \x03(\x0b\x32\".spotify.player.proto.ContextTrack\x12\x0f\n\x07loading\x18\x05 \x01(\x08\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x17\n\x13\x63om.spotify.contextH\x02', dependencies=[ context__track__pb2.DESCRIPTOR, ]) diff --git a/librespot/proto/ContextPlayerOptions.py b/librespot/proto/ContextPlayerOptions.py index 51a4548..475a3d8 100644 --- a/librespot/proto/ContextPlayerOptions.py +++ b/librespot/proto/ContextPlayerOptions.py @@ -16,8 +16,7 @@ DESCRIPTOR = _descriptor.FileDescriptor( syntax='proto2', serialized_options=b'\n\023com.spotify.contextH\002', create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n\x1c\x63ontext_player_options.proto\x12\x14spotify.player.proto\"e\n\x14\x43ontextPlayerOptions\x12\x19\n\x11shuffling_context\x18\x01 \x01(\x08\x12\x19\n\x11repeating_context\x18\x02 \x01(\x08\x12\x17\n\x0frepeating_track\x18\x03 \x01(\x08\"m\n\x1c\x43ontextPlayerOptionOverrides\x12\x19\n\x11shuffling_context\x18\x01 \x01(\x08\x12\x19\n\x11repeating_context\x18\x02 \x01(\x08\x12\x17\n\x0frepeating_track\x18\x03 \x01(\x08\x42\x17\n\x13\x63om.spotify.contextH\x02' + serialized_pb=b'\n\x1c\x63ontext_player_options.proto\x12\x14spotify.player.proto\"e\n\x14\x43ontextPlayerOptions\x12\x19\n\x11shuffling_context\x18\x01 \x01(\x08\x12\x19\n\x11repeating_context\x18\x02 \x01(\x08\x12\x17\n\x0frepeating_track\x18\x03 \x01(\x08\"m\n\x1c\x43ontextPlayerOptionOverrides\x12\x19\n\x11shuffling_context\x18\x01 \x01(\x08\x12\x19\n\x11repeating_context\x18\x02 \x01(\x08\x12\x17\n\x0frepeating_track\x18\x03 \x01(\x08\x42\x17\n\x13\x63om.spotify.contextH\x02' ) _CONTEXTPLAYEROPTIONS = _descriptor.Descriptor( @@ -30,8 +29,7 @@ _CONTEXTPLAYEROPTIONS = _descriptor.Descriptor( fields=[ _descriptor.FieldDescriptor( name='shuffling_context', - full_name= - 'spotify.player.proto.ContextPlayerOptions.shuffling_context', + full_name='spotify.player.proto.ContextPlayerOptions.shuffling_context', index=0, number=1, type=8, @@ -49,8 +47,7 @@ _CONTEXTPLAYEROPTIONS = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='repeating_context', - full_name= - 'spotify.player.proto.ContextPlayerOptions.repeating_context', + full_name='spotify.player.proto.ContextPlayerOptions.repeating_context', index=1, number=2, type=8, @@ -68,8 +65,7 @@ _CONTEXTPLAYEROPTIONS = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='repeating_track', - full_name= - 'spotify.player.proto.ContextPlayerOptions.repeating_track', + full_name='spotify.player.proto.ContextPlayerOptions.repeating_track', index=2, number=3, type=8, @@ -108,8 +104,7 @@ _CONTEXTPLAYEROPTIONOVERRIDES = _descriptor.Descriptor( fields=[ _descriptor.FieldDescriptor( name='shuffling_context', - full_name= - 'spotify.player.proto.ContextPlayerOptionOverrides.shuffling_context', + full_name='spotify.player.proto.ContextPlayerOptionOverrides.shuffling_context', index=0, number=1, type=8, @@ -127,8 +122,7 @@ _CONTEXTPLAYEROPTIONOVERRIDES = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='repeating_context', - full_name= - 'spotify.player.proto.ContextPlayerOptionOverrides.repeating_context', + full_name='spotify.player.proto.ContextPlayerOptionOverrides.repeating_context', index=1, number=2, type=8, @@ -146,8 +140,7 @@ _CONTEXTPLAYEROPTIONOVERRIDES = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='repeating_track', - full_name= - 'spotify.player.proto.ContextPlayerOptionOverrides.repeating_track', + full_name='spotify.player.proto.ContextPlayerOptionOverrides.repeating_track', index=2, number=3, type=8, diff --git a/librespot/proto/ContextTrack.py b/librespot/proto/ContextTrack.py index 45155a2..740d0ee 100644 --- a/librespot/proto/ContextTrack.py +++ b/librespot/proto/ContextTrack.py @@ -16,8 +16,7 @@ DESCRIPTOR = _descriptor.FileDescriptor( syntax='proto2', serialized_options=b'\n\023com.spotify.contextH\002', create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n\x13\x63ontext_track.proto\x12\x14spotify.player.proto\"\xaa\x01\n\x0c\x43ontextTrack\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x0b\n\x03uid\x18\x02 \x01(\t\x12\x0b\n\x03gid\x18\x03 \x01(\x0c\x12\x42\n\x08metadata\x18\x04 \x03(\x0b\x32\x30.spotify.player.proto.ContextTrack.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x17\n\x13\x63om.spotify.contextH\x02' + serialized_pb=b'\n\x13\x63ontext_track.proto\x12\x14spotify.player.proto\"\xaa\x01\n\x0c\x43ontextTrack\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x0b\n\x03uid\x18\x02 \x01(\t\x12\x0b\n\x03gid\x18\x03 \x01(\x0c\x12\x42\n\x08metadata\x18\x04 \x03(\x0b\x32\x30.spotify.player.proto.ContextTrack.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x17\n\x13\x63om.spotify.contextH\x02' ) _CONTEXTTRACK_METADATAENTRY = _descriptor.Descriptor( diff --git a/librespot/proto/PlayOrigin.py b/librespot/proto/PlayOrigin.py index e013e4c..9278026 100644 --- a/librespot/proto/PlayOrigin.py +++ b/librespot/proto/PlayOrigin.py @@ -16,8 +16,7 @@ DESCRIPTOR = _descriptor.FileDescriptor( syntax='proto2', serialized_options=b'\n\023com.spotify.contextH\002', create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n\x11play_origin.proto\x12\x14spotify.player.proto\"\xbf\x01\n\nPlayOrigin\x12\x1a\n\x12\x66\x65\x61ture_identifier\x18\x01 \x01(\t\x12\x17\n\x0f\x66\x65\x61ture_version\x18\x02 \x01(\t\x12\x10\n\x08view_uri\x18\x03 \x01(\t\x12\x19\n\x11\x65xternal_referrer\x18\x04 \x01(\t\x12\x1b\n\x13referrer_identifier\x18\x05 \x01(\t\x12\x19\n\x11\x64\x65vice_identifier\x18\x06 \x01(\t\x12\x17\n\x0f\x66\x65\x61ture_classes\x18\x07 \x03(\tB\x17\n\x13\x63om.spotify.contextH\x02' + serialized_pb=b'\n\x11play_origin.proto\x12\x14spotify.player.proto\"\xbf\x01\n\nPlayOrigin\x12\x1a\n\x12\x66\x65\x61ture_identifier\x18\x01 \x01(\t\x12\x17\n\x0f\x66\x65\x61ture_version\x18\x02 \x01(\t\x12\x10\n\x08view_uri\x18\x03 \x01(\t\x12\x19\n\x11\x65xternal_referrer\x18\x04 \x01(\t\x12\x1b\n\x13referrer_identifier\x18\x05 \x01(\t\x12\x19\n\x11\x64\x65vice_identifier\x18\x06 \x01(\t\x12\x17\n\x0f\x66\x65\x61ture_classes\x18\x07 \x03(\tB\x17\n\x13\x63om.spotify.contextH\x02' ) _PLAYORIGIN = _descriptor.Descriptor( diff --git a/librespot/proto/Playback.py b/librespot/proto/Playback.py index 60e72d1..d13562f 100644 --- a/librespot/proto/Playback.py +++ b/librespot/proto/Playback.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: playback.proto """Generated protocol buffer code.""" +import ContextTrack as context__track__pb2 from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -10,7 +11,6 @@ from google.protobuf import symbol_database as _symbol_database _sym_db = _symbol_database.Default() -import ContextTrack as context__track__pb2 DESCRIPTOR = _descriptor.FileDescriptor( name='playback.proto', @@ -18,8 +18,7 @@ DESCRIPTOR = _descriptor.FileDescriptor( syntax='proto2', serialized_options=b'\n\024com.spotify.transferH\002', create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n\x0eplayback.proto\x12\x1dspotify.player.proto.transfer\x1a\x13\x63ontext_track.proto\"\xa5\x01\n\x08Playback\x12\x11\n\ttimestamp\x18\x01 \x01(\x03\x12 \n\x18position_as_of_timestamp\x18\x02 \x01(\x05\x12\x16\n\x0eplayback_speed\x18\x03 \x01(\x01\x12\x11\n\tis_paused\x18\x04 \x01(\x08\x12\x39\n\rcurrent_track\x18\x05 \x01(\x0b\x32\".spotify.player.proto.ContextTrackB\x18\n\x14\x63om.spotify.transferH\x02', + serialized_pb=b'\n\x0eplayback.proto\x12\x1dspotify.player.proto.transfer\x1a\x13\x63ontext_track.proto\"\xa5\x01\n\x08Playback\x12\x11\n\ttimestamp\x18\x01 \x01(\x03\x12 \n\x18position_as_of_timestamp\x18\x02 \x01(\x05\x12\x16\n\x0eplayback_speed\x18\x03 \x01(\x01\x12\x11\n\tis_paused\x18\x04 \x01(\x08\x12\x39\n\rcurrent_track\x18\x05 \x01(\x0b\x32\".spotify.player.proto.ContextTrackB\x18\n\x14\x63om.spotify.transferH\x02', dependencies=[ context__track__pb2.DESCRIPTOR, ]) @@ -52,8 +51,7 @@ _PLAYBACK = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='position_as_of_timestamp', - full_name= - 'spotify.player.proto.transfer.Playback.position_as_of_timestamp', + full_name='spotify.player.proto.transfer.Playback.position_as_of_timestamp', index=1, number=2, type=5, diff --git a/librespot/proto/Playlist4External.py b/librespot/proto/Playlist4External.py index 72c5896..43987ec 100644 --- a/librespot/proto/Playlist4External.py +++ b/librespot/proto/Playlist4External.py @@ -15,11 +15,9 @@ DESCRIPTOR = _descriptor.FileDescriptor( name='playlist4_external.proto', package='spotify.playlist4.proto', syntax='proto2', - serialized_options= - b'\n\025com.spotify.playlist4B\021Playlist4ApiProtoH\002', + serialized_options=b'\n\025com.spotify.playlist4B\021Playlist4ApiProtoH\002', create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n\x18playlist4_external.proto\x12\x17spotify.playlist4.proto\"P\n\x04Item\x12\x0b\n\x03uri\x18\x01 \x02(\t\x12;\n\nattributes\x18\x02 \x01(\x0b\x32\'.spotify.playlist4.proto.ItemAttributes\"\x94\x01\n\x08MetaItem\x12\x10\n\x08revision\x18\x01 \x01(\x0c\x12;\n\nattributes\x18\x02 \x01(\x0b\x32\'.spotify.playlist4.proto.ListAttributes\x12\x0e\n\x06length\x18\x03 \x01(\x05\x12\x11\n\ttimestamp\x18\x04 \x01(\x03\x12\x16\n\x0eowner_username\x18\x05 \x01(\t\"\x90\x01\n\tListItems\x12\x0b\n\x03pos\x18\x01 \x02(\x05\x12\x11\n\ttruncated\x18\x02 \x02(\x08\x12,\n\x05items\x18\x03 \x03(\x0b\x32\x1d.spotify.playlist4.proto.Item\x12\x35\n\nmeta_items\x18\x04 \x03(\x0b\x32!.spotify.playlist4.proto.MetaItem\"1\n\x13\x46ormatListAttribute\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\"\xf6\x01\n\x0eListAttributes\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x0f\n\x07picture\x18\x03 \x01(\x0c\x12\x15\n\rcollaborative\x18\x04 \x01(\x08\x12\x13\n\x0bpl3_version\x18\x05 \x01(\t\x12\x18\n\x10\x64\x65leted_by_owner\x18\x06 \x01(\x08\x12\x11\n\tclient_id\x18\n \x01(\t\x12\x0e\n\x06\x66ormat\x18\x0b \x01(\t\x12G\n\x11\x66ormat_attributes\x18\x0c \x03(\x0b\x32,.spotify.playlist4.proto.FormatListAttribute\"\xb0\x01\n\x0eItemAttributes\x12\x10\n\x08\x61\x64\x64\x65\x64_by\x18\x01 \x01(\t\x12\x11\n\ttimestamp\x18\x02 \x01(\x03\x12\x0f\n\x07seen_at\x18\t \x01(\x03\x12\x0e\n\x06public\x18\n \x01(\x08\x12G\n\x11\x66ormat_attributes\x18\x0b \x03(\x0b\x32,.spotify.playlist4.proto.FormatListAttribute\x12\x0f\n\x07item_id\x18\x0c \x01(\x0c\"l\n\x03\x41\x64\x64\x12\x12\n\nfrom_index\x18\x01 \x01(\x05\x12,\n\x05items\x18\x02 \x03(\x0b\x32\x1d.spotify.playlist4.proto.Item\x12\x10\n\x08\x61\x64\x64_last\x18\x04 \x01(\x08\x12\x11\n\tadd_first\x18\x05 \x01(\x08\"m\n\x03Rem\x12\x12\n\nfrom_index\x18\x01 \x01(\x05\x12\x0e\n\x06length\x18\x02 \x01(\x05\x12,\n\x05items\x18\x03 \x03(\x0b\x32\x1d.spotify.playlist4.proto.Item\x12\x14\n\x0citems_as_key\x18\x07 \x01(\x08\";\n\x03Mov\x12\x12\n\nfrom_index\x18\x01 \x02(\x05\x12\x0e\n\x06length\x18\x02 \x02(\x05\x12\x10\n\x08to_index\x18\x03 \x02(\x05\"\x93\x01\n\x1aItemAttributesPartialState\x12\x37\n\x06values\x18\x01 \x02(\x0b\x32\'.spotify.playlist4.proto.ItemAttributes\x12<\n\x08no_value\x18\x02 \x03(\x0e\x32*.spotify.playlist4.proto.ItemAttributeKind\"\x93\x01\n\x1aListAttributesPartialState\x12\x37\n\x06values\x18\x01 \x02(\x0b\x32\'.spotify.playlist4.proto.ListAttributes\x12<\n\x08no_value\x18\x02 \x03(\x0e\x32*.spotify.playlist4.proto.ListAttributeKind\"\xbf\x01\n\x14UpdateItemAttributes\x12\r\n\x05index\x18\x01 \x02(\x05\x12K\n\x0enew_attributes\x18\x02 \x02(\x0b\x32\x33.spotify.playlist4.proto.ItemAttributesPartialState\x12K\n\x0eold_attributes\x18\x03 \x01(\x0b\x32\x33.spotify.playlist4.proto.ItemAttributesPartialState\"\xb0\x01\n\x14UpdateListAttributes\x12K\n\x0enew_attributes\x18\x01 \x02(\x0b\x32\x33.spotify.playlist4.proto.ListAttributesPartialState\x12K\n\x0eold_attributes\x18\x02 \x01(\x0b\x32\x33.spotify.playlist4.proto.ListAttributesPartialState\"\xc0\x03\n\x02Op\x12.\n\x04kind\x18\x01 \x02(\x0e\x32 .spotify.playlist4.proto.Op.Kind\x12)\n\x03\x61\x64\x64\x18\x02 \x01(\x0b\x32\x1c.spotify.playlist4.proto.Add\x12)\n\x03rem\x18\x03 \x01(\x0b\x32\x1c.spotify.playlist4.proto.Rem\x12)\n\x03mov\x18\x04 \x01(\x0b\x32\x1c.spotify.playlist4.proto.Mov\x12M\n\x16update_item_attributes\x18\x05 \x01(\x0b\x32-.spotify.playlist4.proto.UpdateItemAttributes\x12M\n\x16update_list_attributes\x18\x06 \x01(\x0b\x32-.spotify.playlist4.proto.UpdateListAttributes\"k\n\x04Kind\x12\x10\n\x0cKIND_UNKNOWN\x10\x00\x12\x07\n\x03\x41\x44\x44\x10\x02\x12\x07\n\x03REM\x10\x03\x12\x07\n\x03MOV\x10\x04\x12\x1a\n\x16UPDATE_ITEM_ATTRIBUTES\x10\x05\x12\x1a\n\x16UPDATE_LIST_ATTRIBUTES\x10\x06\"2\n\x06OpList\x12(\n\x03ops\x18\x01 \x03(\x0b\x32\x1b.spotify.playlist4.proto.Op\"\xd5\x01\n\nChangeInfo\x12\x0c\n\x04user\x18\x01 \x01(\t\x12\x11\n\ttimestamp\x18\x02 \x01(\x03\x12\r\n\x05\x61\x64min\x18\x03 \x01(\x08\x12\x0c\n\x04undo\x18\x04 \x01(\x08\x12\x0c\n\x04redo\x18\x05 \x01(\x08\x12\r\n\x05merge\x18\x06 \x01(\x08\x12\x12\n\ncompressed\x18\x07 \x01(\x08\x12\x11\n\tmigration\x18\x08 \x01(\x08\x12\x10\n\x08split_id\x18\t \x01(\x05\x12\x33\n\x06source\x18\n \x01(\x0b\x32#.spotify.playlist4.proto.SourceInfo\"\xe8\x01\n\nSourceInfo\x12:\n\x06\x63lient\x18\x01 \x01(\x0e\x32*.spotify.playlist4.proto.SourceInfo.Client\x12\x0b\n\x03\x61pp\x18\x03 \x01(\t\x12\x0e\n\x06source\x18\x04 \x01(\t\x12\x0f\n\x07version\x18\x05 \x01(\t\"p\n\x06\x43lient\x12\x12\n\x0e\x43LIENT_UNKNOWN\x10\x00\x12\x11\n\rNATIVE_HERMES\x10\x01\x12\n\n\x06\x43LIENT\x10\x02\x12\n\n\x06PYTHON\x10\x03\x12\x08\n\x04JAVA\x10\x04\x12\r\n\tWEBPLAYER\x10\x05\x12\x0e\n\nLIBSPOTIFY\x10\x06\"z\n\x05\x44\x65lta\x12\x14\n\x0c\x62\x61se_version\x18\x01 \x01(\x0c\x12(\n\x03ops\x18\x02 \x03(\x0b\x32\x1b.spotify.playlist4.proto.Op\x12\x31\n\x04info\x18\x04 \x01(\x0b\x32#.spotify.playlist4.proto.ChangeInfo\"\\\n\x04\x44iff\x12\x15\n\rfrom_revision\x18\x01 \x02(\x0c\x12(\n\x03ops\x18\x02 \x03(\x0b\x32\x1b.spotify.playlist4.proto.Op\x12\x13\n\x0bto_revision\x18\x03 \x02(\x0c\"\xa0\x01\n\x0bListChanges\x12\x15\n\rbase_revision\x18\x01 \x01(\x0c\x12.\n\x06\x64\x65ltas\x18\x02 \x03(\x0b\x32\x1e.spotify.playlist4.proto.Delta\x12 \n\x18want_resulting_revisions\x18\x03 \x01(\x08\x12\x18\n\x10want_sync_result\x18\x04 \x01(\x08\x12\x0e\n\x06nonces\x18\x06 \x03(\x03\"\x8f\x03\n\x13SelectedListContent\x12\x10\n\x08revision\x18\x01 \x01(\x0c\x12\x0e\n\x06length\x18\x02 \x01(\x05\x12;\n\nattributes\x18\x03 \x01(\x0b\x32\'.spotify.playlist4.proto.ListAttributes\x12\x34\n\x08\x63ontents\x18\x05 \x01(\x0b\x32\".spotify.playlist4.proto.ListItems\x12+\n\x04\x64iff\x18\x06 \x01(\x0b\x32\x1d.spotify.playlist4.proto.Diff\x12\x32\n\x0bsync_result\x18\x07 \x01(\x0b\x32\x1d.spotify.playlist4.proto.Diff\x12\x1b\n\x13resulting_revisions\x18\x08 \x03(\x0c\x12\x16\n\x0emultiple_heads\x18\t \x01(\x08\x12\x12\n\nup_to_date\x18\n \x01(\x08\x12\x0e\n\x06nonces\x18\x0e \x03(\x03\x12\x11\n\ttimestamp\x18\x0f \x01(\x03\x12\x16\n\x0eowner_username\x18\x10 \x01(\t\"0\n\x0f\x43reateListReply\x12\x0b\n\x03uri\x18\x01 \x02(\x0c\x12\x10\n\x08revision\x18\x02 \x01(\x0c\",\n\x0bModifyReply\x12\x0b\n\x03uri\x18\x01 \x02(\x0c\x12\x10\n\x08revision\x18\x02 \x01(\x0c\" \n\x10SubscribeRequest\x12\x0c\n\x04uris\x18\x01 \x03(\x0c\"\"\n\x12UnsubscribeRequest\x12\x0c\n\x04uris\x18\x01 \x03(\x0c\"\x80\x01\n\x18PlaylistModificationInfo\x12\x0b\n\x03uri\x18\x01 \x01(\x0c\x12\x14\n\x0cnew_revision\x18\x02 \x01(\x0c\x12\x17\n\x0fparent_revision\x18\x03 \x01(\x0c\x12(\n\x03ops\x18\x04 \x03(\x0b\x32\x1b.spotify.playlist4.proto.Op*\xe6\x01\n\x11ListAttributeKind\x12\x10\n\x0cLIST_UNKNOWN\x10\x00\x12\r\n\tLIST_NAME\x10\x01\x12\x14\n\x10LIST_DESCRIPTION\x10\x02\x12\x10\n\x0cLIST_PICTURE\x10\x03\x12\x16\n\x12LIST_COLLABORATIVE\x10\x04\x12\x14\n\x10LIST_PL3_VERSION\x10\x05\x12\x19\n\x15LIST_DELETED_BY_OWNER\x10\x06\x12\x12\n\x0eLIST_CLIENT_ID\x10\n\x12\x0f\n\x0bLIST_FORMAT\x10\x0b\x12\x1a\n\x16LIST_FORMAT_ATTRIBUTES\x10\x0c*\x98\x01\n\x11ItemAttributeKind\x12\x10\n\x0cITEM_UNKNOWN\x10\x00\x12\x11\n\rITEM_ADDED_BY\x10\x01\x12\x12\n\x0eITEM_TIMESTAMP\x10\x02\x12\x10\n\x0cITEM_SEEN_AT\x10\t\x12\x0f\n\x0bITEM_PUBLIC\x10\n\x12\x1a\n\x16ITEM_FORMAT_ATTRIBUTES\x10\x0b\x12\x0b\n\x07ITEM_ID\x10\x0c\x42,\n\x15\x63om.spotify.playlist4B\x11Playlist4ApiProtoH\x02' + serialized_pb=b'\n\x18playlist4_external.proto\x12\x17spotify.playlist4.proto\"P\n\x04Item\x12\x0b\n\x03uri\x18\x01 \x02(\t\x12;\n\nattributes\x18\x02 \x01(\x0b\x32\'.spotify.playlist4.proto.ItemAttributes\"\x94\x01\n\x08MetaItem\x12\x10\n\x08revision\x18\x01 \x01(\x0c\x12;\n\nattributes\x18\x02 \x01(\x0b\x32\'.spotify.playlist4.proto.ListAttributes\x12\x0e\n\x06length\x18\x03 \x01(\x05\x12\x11\n\ttimestamp\x18\x04 \x01(\x03\x12\x16\n\x0eowner_username\x18\x05 \x01(\t\"\x90\x01\n\tListItems\x12\x0b\n\x03pos\x18\x01 \x02(\x05\x12\x11\n\ttruncated\x18\x02 \x02(\x08\x12,\n\x05items\x18\x03 \x03(\x0b\x32\x1d.spotify.playlist4.proto.Item\x12\x35\n\nmeta_items\x18\x04 \x03(\x0b\x32!.spotify.playlist4.proto.MetaItem\"1\n\x13\x46ormatListAttribute\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\"\xf6\x01\n\x0eListAttributes\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x0f\n\x07picture\x18\x03 \x01(\x0c\x12\x15\n\rcollaborative\x18\x04 \x01(\x08\x12\x13\n\x0bpl3_version\x18\x05 \x01(\t\x12\x18\n\x10\x64\x65leted_by_owner\x18\x06 \x01(\x08\x12\x11\n\tclient_id\x18\n \x01(\t\x12\x0e\n\x06\x66ormat\x18\x0b \x01(\t\x12G\n\x11\x66ormat_attributes\x18\x0c \x03(\x0b\x32,.spotify.playlist4.proto.FormatListAttribute\"\xb0\x01\n\x0eItemAttributes\x12\x10\n\x08\x61\x64\x64\x65\x64_by\x18\x01 \x01(\t\x12\x11\n\ttimestamp\x18\x02 \x01(\x03\x12\x0f\n\x07seen_at\x18\t \x01(\x03\x12\x0e\n\x06public\x18\n \x01(\x08\x12G\n\x11\x66ormat_attributes\x18\x0b \x03(\x0b\x32,.spotify.playlist4.proto.FormatListAttribute\x12\x0f\n\x07item_id\x18\x0c \x01(\x0c\"l\n\x03\x41\x64\x64\x12\x12\n\nfrom_index\x18\x01 \x01(\x05\x12,\n\x05items\x18\x02 \x03(\x0b\x32\x1d.spotify.playlist4.proto.Item\x12\x10\n\x08\x61\x64\x64_last\x18\x04 \x01(\x08\x12\x11\n\tadd_first\x18\x05 \x01(\x08\"m\n\x03Rem\x12\x12\n\nfrom_index\x18\x01 \x01(\x05\x12\x0e\n\x06length\x18\x02 \x01(\x05\x12,\n\x05items\x18\x03 \x03(\x0b\x32\x1d.spotify.playlist4.proto.Item\x12\x14\n\x0citems_as_key\x18\x07 \x01(\x08\";\n\x03Mov\x12\x12\n\nfrom_index\x18\x01 \x02(\x05\x12\x0e\n\x06length\x18\x02 \x02(\x05\x12\x10\n\x08to_index\x18\x03 \x02(\x05\"\x93\x01\n\x1aItemAttributesPartialState\x12\x37\n\x06values\x18\x01 \x02(\x0b\x32\'.spotify.playlist4.proto.ItemAttributes\x12<\n\x08no_value\x18\x02 \x03(\x0e\x32*.spotify.playlist4.proto.ItemAttributeKind\"\x93\x01\n\x1aListAttributesPartialState\x12\x37\n\x06values\x18\x01 \x02(\x0b\x32\'.spotify.playlist4.proto.ListAttributes\x12<\n\x08no_value\x18\x02 \x03(\x0e\x32*.spotify.playlist4.proto.ListAttributeKind\"\xbf\x01\n\x14UpdateItemAttributes\x12\r\n\x05index\x18\x01 \x02(\x05\x12K\n\x0enew_attributes\x18\x02 \x02(\x0b\x32\x33.spotify.playlist4.proto.ItemAttributesPartialState\x12K\n\x0eold_attributes\x18\x03 \x01(\x0b\x32\x33.spotify.playlist4.proto.ItemAttributesPartialState\"\xb0\x01\n\x14UpdateListAttributes\x12K\n\x0enew_attributes\x18\x01 \x02(\x0b\x32\x33.spotify.playlist4.proto.ListAttributesPartialState\x12K\n\x0eold_attributes\x18\x02 \x01(\x0b\x32\x33.spotify.playlist4.proto.ListAttributesPartialState\"\xc0\x03\n\x02Op\x12.\n\x04kind\x18\x01 \x02(\x0e\x32 .spotify.playlist4.proto.Op.Kind\x12)\n\x03\x61\x64\x64\x18\x02 \x01(\x0b\x32\x1c.spotify.playlist4.proto.Add\x12)\n\x03rem\x18\x03 \x01(\x0b\x32\x1c.spotify.playlist4.proto.Rem\x12)\n\x03mov\x18\x04 \x01(\x0b\x32\x1c.spotify.playlist4.proto.Mov\x12M\n\x16update_item_attributes\x18\x05 \x01(\x0b\x32-.spotify.playlist4.proto.UpdateItemAttributes\x12M\n\x16update_list_attributes\x18\x06 \x01(\x0b\x32-.spotify.playlist4.proto.UpdateListAttributes\"k\n\x04Kind\x12\x10\n\x0cKIND_UNKNOWN\x10\x00\x12\x07\n\x03\x41\x44\x44\x10\x02\x12\x07\n\x03REM\x10\x03\x12\x07\n\x03MOV\x10\x04\x12\x1a\n\x16UPDATE_ITEM_ATTRIBUTES\x10\x05\x12\x1a\n\x16UPDATE_LIST_ATTRIBUTES\x10\x06\"2\n\x06OpList\x12(\n\x03ops\x18\x01 \x03(\x0b\x32\x1b.spotify.playlist4.proto.Op\"\xd5\x01\n\nChangeInfo\x12\x0c\n\x04user\x18\x01 \x01(\t\x12\x11\n\ttimestamp\x18\x02 \x01(\x03\x12\r\n\x05\x61\x64min\x18\x03 \x01(\x08\x12\x0c\n\x04undo\x18\x04 \x01(\x08\x12\x0c\n\x04redo\x18\x05 \x01(\x08\x12\r\n\x05merge\x18\x06 \x01(\x08\x12\x12\n\ncompressed\x18\x07 \x01(\x08\x12\x11\n\tmigration\x18\x08 \x01(\x08\x12\x10\n\x08split_id\x18\t \x01(\x05\x12\x33\n\x06source\x18\n \x01(\x0b\x32#.spotify.playlist4.proto.SourceInfo\"\xe8\x01\n\nSourceInfo\x12:\n\x06\x63lient\x18\x01 \x01(\x0e\x32*.spotify.playlist4.proto.SourceInfo.Client\x12\x0b\n\x03\x61pp\x18\x03 \x01(\t\x12\x0e\n\x06source\x18\x04 \x01(\t\x12\x0f\n\x07version\x18\x05 \x01(\t\"p\n\x06\x43lient\x12\x12\n\x0e\x43LIENT_UNKNOWN\x10\x00\x12\x11\n\rNATIVE_HERMES\x10\x01\x12\n\n\x06\x43LIENT\x10\x02\x12\n\n\x06PYTHON\x10\x03\x12\x08\n\x04JAVA\x10\x04\x12\r\n\tWEBPLAYER\x10\x05\x12\x0e\n\nLIBSPOTIFY\x10\x06\"z\n\x05\x44\x65lta\x12\x14\n\x0c\x62\x61se_version\x18\x01 \x01(\x0c\x12(\n\x03ops\x18\x02 \x03(\x0b\x32\x1b.spotify.playlist4.proto.Op\x12\x31\n\x04info\x18\x04 \x01(\x0b\x32#.spotify.playlist4.proto.ChangeInfo\"\\\n\x04\x44iff\x12\x15\n\rfrom_revision\x18\x01 \x02(\x0c\x12(\n\x03ops\x18\x02 \x03(\x0b\x32\x1b.spotify.playlist4.proto.Op\x12\x13\n\x0bto_revision\x18\x03 \x02(\x0c\"\xa0\x01\n\x0bListChanges\x12\x15\n\rbase_revision\x18\x01 \x01(\x0c\x12.\n\x06\x64\x65ltas\x18\x02 \x03(\x0b\x32\x1e.spotify.playlist4.proto.Delta\x12 \n\x18want_resulting_revisions\x18\x03 \x01(\x08\x12\x18\n\x10want_sync_result\x18\x04 \x01(\x08\x12\x0e\n\x06nonces\x18\x06 \x03(\x03\"\x8f\x03\n\x13SelectedListContent\x12\x10\n\x08revision\x18\x01 \x01(\x0c\x12\x0e\n\x06length\x18\x02 \x01(\x05\x12;\n\nattributes\x18\x03 \x01(\x0b\x32\'.spotify.playlist4.proto.ListAttributes\x12\x34\n\x08\x63ontents\x18\x05 \x01(\x0b\x32\".spotify.playlist4.proto.ListItems\x12+\n\x04\x64iff\x18\x06 \x01(\x0b\x32\x1d.spotify.playlist4.proto.Diff\x12\x32\n\x0bsync_result\x18\x07 \x01(\x0b\x32\x1d.spotify.playlist4.proto.Diff\x12\x1b\n\x13resulting_revisions\x18\x08 \x03(\x0c\x12\x16\n\x0emultiple_heads\x18\t \x01(\x08\x12\x12\n\nup_to_date\x18\n \x01(\x08\x12\x0e\n\x06nonces\x18\x0e \x03(\x03\x12\x11\n\ttimestamp\x18\x0f \x01(\x03\x12\x16\n\x0eowner_username\x18\x10 \x01(\t\"0\n\x0f\x43reateListReply\x12\x0b\n\x03uri\x18\x01 \x02(\x0c\x12\x10\n\x08revision\x18\x02 \x01(\x0c\",\n\x0bModifyReply\x12\x0b\n\x03uri\x18\x01 \x02(\x0c\x12\x10\n\x08revision\x18\x02 \x01(\x0c\" \n\x10SubscribeRequest\x12\x0c\n\x04uris\x18\x01 \x03(\x0c\"\"\n\x12UnsubscribeRequest\x12\x0c\n\x04uris\x18\x01 \x03(\x0c\"\x80\x01\n\x18PlaylistModificationInfo\x12\x0b\n\x03uri\x18\x01 \x01(\x0c\x12\x14\n\x0cnew_revision\x18\x02 \x01(\x0c\x12\x17\n\x0fparent_revision\x18\x03 \x01(\x0c\x12(\n\x03ops\x18\x04 \x03(\x0b\x32\x1b.spotify.playlist4.proto.Op*\xe6\x01\n\x11ListAttributeKind\x12\x10\n\x0cLIST_UNKNOWN\x10\x00\x12\r\n\tLIST_NAME\x10\x01\x12\x14\n\x10LIST_DESCRIPTION\x10\x02\x12\x10\n\x0cLIST_PICTURE\x10\x03\x12\x16\n\x12LIST_COLLABORATIVE\x10\x04\x12\x14\n\x10LIST_PL3_VERSION\x10\x05\x12\x19\n\x15LIST_DELETED_BY_OWNER\x10\x06\x12\x12\n\x0eLIST_CLIENT_ID\x10\n\x12\x0f\n\x0bLIST_FORMAT\x10\x0b\x12\x1a\n\x16LIST_FORMAT_ATTRIBUTES\x10\x0c*\x98\x01\n\x11ItemAttributeKind\x12\x10\n\x0cITEM_UNKNOWN\x10\x00\x12\x11\n\rITEM_ADDED_BY\x10\x01\x12\x12\n\x0eITEM_TIMESTAMP\x10\x02\x12\x10\n\x0cITEM_SEEN_AT\x10\t\x12\x0f\n\x0bITEM_PUBLIC\x10\n\x12\x1a\n\x16ITEM_FORMAT_ATTRIBUTES\x10\x0b\x12\x0b\n\x07ITEM_ID\x10\x0c\x42,\n\x15\x63om.spotify.playlist4B\x11Playlist4ApiProtoH\x02' ) _LISTATTRIBUTEKIND = _descriptor.EnumDescriptor( @@ -784,8 +782,7 @@ _LISTATTRIBUTES = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='format_attributes', - full_name= - 'spotify.playlist4.proto.ListAttributes.format_attributes', + full_name='spotify.playlist4.proto.ListAttributes.format_attributes', index=8, number=12, type=11, @@ -896,8 +893,7 @@ _ITEMATTRIBUTES = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='format_attributes', - full_name= - 'spotify.playlist4.proto.ItemAttributes.format_attributes', + full_name='spotify.playlist4.proto.ItemAttributes.format_attributes', index=4, number=11, type=11, @@ -1215,8 +1211,7 @@ _ITEMATTRIBUTESPARTIALSTATE = _descriptor.Descriptor( fields=[ _descriptor.FieldDescriptor( name='values', - full_name= - 'spotify.playlist4.proto.ItemAttributesPartialState.values', + full_name='spotify.playlist4.proto.ItemAttributesPartialState.values', index=0, number=1, type=11, @@ -1234,8 +1229,7 @@ _ITEMATTRIBUTESPARTIALSTATE = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='no_value', - full_name= - 'spotify.playlist4.proto.ItemAttributesPartialState.no_value', + full_name='spotify.playlist4.proto.ItemAttributesPartialState.no_value', index=1, number=2, type=14, @@ -1274,8 +1268,7 @@ _LISTATTRIBUTESPARTIALSTATE = _descriptor.Descriptor( fields=[ _descriptor.FieldDescriptor( name='values', - full_name= - 'spotify.playlist4.proto.ListAttributesPartialState.values', + full_name='spotify.playlist4.proto.ListAttributesPartialState.values', index=0, number=1, type=11, @@ -1293,8 +1286,7 @@ _LISTATTRIBUTESPARTIALSTATE = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='no_value', - full_name= - 'spotify.playlist4.proto.ListAttributesPartialState.no_value', + full_name='spotify.playlist4.proto.ListAttributesPartialState.no_value', index=1, number=2, type=14, @@ -1351,8 +1343,7 @@ _UPDATEITEMATTRIBUTES = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='new_attributes', - full_name= - 'spotify.playlist4.proto.UpdateItemAttributes.new_attributes', + full_name='spotify.playlist4.proto.UpdateItemAttributes.new_attributes', index=1, number=2, type=11, @@ -1370,8 +1361,7 @@ _UPDATEITEMATTRIBUTES = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='old_attributes', - full_name= - 'spotify.playlist4.proto.UpdateItemAttributes.old_attributes', + full_name='spotify.playlist4.proto.UpdateItemAttributes.old_attributes', index=2, number=3, type=11, @@ -1410,8 +1400,7 @@ _UPDATELISTATTRIBUTES = _descriptor.Descriptor( fields=[ _descriptor.FieldDescriptor( name='new_attributes', - full_name= - 'spotify.playlist4.proto.UpdateListAttributes.new_attributes', + full_name='spotify.playlist4.proto.UpdateListAttributes.new_attributes', index=0, number=1, type=11, @@ -1429,8 +1418,7 @@ _UPDATELISTATTRIBUTES = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='old_attributes', - full_name= - 'spotify.playlist4.proto.UpdateListAttributes.old_attributes', + full_name='spotify.playlist4.proto.UpdateListAttributes.old_attributes', index=1, number=2, type=11, @@ -2121,8 +2109,7 @@ _LISTCHANGES = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='want_resulting_revisions', - full_name= - 'spotify.playlist4.proto.ListChanges.want_resulting_revisions', + full_name='spotify.playlist4.proto.ListChanges.want_resulting_revisions', index=2, number=3, type=8, @@ -2305,8 +2292,7 @@ _SELECTEDLISTCONTENT = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='resulting_revisions', - full_name= - 'spotify.playlist4.proto.SelectedListContent.resulting_revisions', + full_name='spotify.playlist4.proto.SelectedListContent.resulting_revisions', index=6, number=8, type=12, @@ -2324,8 +2310,7 @@ _SELECTEDLISTCONTENT = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='multiple_heads', - full_name= - 'spotify.playlist4.proto.SelectedListContent.multiple_heads', + full_name='spotify.playlist4.proto.SelectedListContent.multiple_heads', index=7, number=9, type=8, @@ -2397,8 +2382,7 @@ _SELECTEDLISTCONTENT = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='owner_username', - full_name= - 'spotify.playlist4.proto.SelectedListContent.owner_username', + full_name='spotify.playlist4.proto.SelectedListContent.owner_username', index=11, number=16, type=9, @@ -2647,8 +2631,7 @@ _PLAYLISTMODIFICATIONINFO = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='new_revision', - full_name= - 'spotify.playlist4.proto.PlaylistModificationInfo.new_revision', + full_name='spotify.playlist4.proto.PlaylistModificationInfo.new_revision', index=1, number=2, type=12, @@ -2666,8 +2649,7 @@ _PLAYLISTMODIFICATIONINFO = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='parent_revision', - full_name= - 'spotify.playlist4.proto.PlaylistModificationInfo.parent_revision', + full_name='spotify.playlist4.proto.PlaylistModificationInfo.parent_revision', index=2, number=3, type=12, diff --git a/librespot/proto/PlaylistAnnotate3.py b/librespot/proto/PlaylistAnnotate3.py index 0ef985a..68ffa14 100644 --- a/librespot/proto/PlaylistAnnotate3.py +++ b/librespot/proto/PlaylistAnnotate3.py @@ -17,8 +17,7 @@ DESCRIPTOR = _descriptor.FileDescriptor( syntax='proto2', serialized_options=b'\n\036com.spotify.playlist_annotate3H\002', create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n\x18playlist_annotate3.proto\x12 spotify_playlist_annotate3.proto\"a\n\x0fTakedownRequest\x12N\n\x12\x61\x62use_report_state\x18\x01 \x01(\x0e\x32\x32.spotify_playlist_annotate3.proto.AbuseReportState\"9\n\x0f\x41nnotateRequest\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12\x11\n\timage_uri\x18\x02 \x01(\t\"5\n\x11TranscodedPicture\x12\x13\n\x0btarget_name\x18\x01 \x01(\t\x12\x0b\n\x03uri\x18\x02 \x01(\t\"\xf4\x02\n\x12PlaylistAnnotation\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12\x0f\n\x07picture\x18\x02 \x01(\t\x12i\n\x1a\x64\x65precated_render_features\x18\x03 \x01(\x0e\x32\x30.spotify_playlist_annotate3.proto.RenderFeatures:\x0fNORMAL_FEATURESB\x02\x18\x01\x12O\n\x12transcoded_picture\x18\x04 \x03(\x0b\x32\x33.spotify_playlist_annotate3.proto.TranscodedPicture\x12(\n\x1ais_abuse_reporting_enabled\x18\x06 \x01(\x08:\x04true\x12R\n\x12\x61\x62use_report_state\x18\x07 \x01(\x0e\x32\x32.spotify_playlist_annotate3.proto.AbuseReportState:\x02OK*<\n\x0eRenderFeatures\x12\x13\n\x0fNORMAL_FEATURES\x10\x01\x12\x15\n\x11\x45XTENDED_FEATURES\x10\x02**\n\x10\x41\x62useReportState\x12\x06\n\x02OK\x10\x00\x12\x0e\n\nTAKEN_DOWN\x10\x01\x42\"\n\x1e\x63om.spotify.playlist_annotate3H\x02' + serialized_pb=b'\n\x18playlist_annotate3.proto\x12 spotify_playlist_annotate3.proto\"a\n\x0fTakedownRequest\x12N\n\x12\x61\x62use_report_state\x18\x01 \x01(\x0e\x32\x32.spotify_playlist_annotate3.proto.AbuseReportState\"9\n\x0f\x41nnotateRequest\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12\x11\n\timage_uri\x18\x02 \x01(\t\"5\n\x11TranscodedPicture\x12\x13\n\x0btarget_name\x18\x01 \x01(\t\x12\x0b\n\x03uri\x18\x02 \x01(\t\"\xf4\x02\n\x12PlaylistAnnotation\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12\x0f\n\x07picture\x18\x02 \x01(\t\x12i\n\x1a\x64\x65precated_render_features\x18\x03 \x01(\x0e\x32\x30.spotify_playlist_annotate3.proto.RenderFeatures:\x0fNORMAL_FEATURESB\x02\x18\x01\x12O\n\x12transcoded_picture\x18\x04 \x03(\x0b\x32\x33.spotify_playlist_annotate3.proto.TranscodedPicture\x12(\n\x1ais_abuse_reporting_enabled\x18\x06 \x01(\x08:\x04true\x12R\n\x12\x61\x62use_report_state\x18\x07 \x01(\x0e\x32\x32.spotify_playlist_annotate3.proto.AbuseReportState:\x02OK*<\n\x0eRenderFeatures\x12\x13\n\x0fNORMAL_FEATURES\x10\x01\x12\x15\n\x11\x45XTENDED_FEATURES\x10\x02**\n\x10\x41\x62useReportState\x12\x06\n\x02OK\x10\x00\x12\x0e\n\nTAKEN_DOWN\x10\x01\x42\"\n\x1e\x63om.spotify.playlist_annotate3H\x02' ) _RENDERFEATURES = _descriptor.EnumDescriptor( @@ -96,8 +95,7 @@ _TAKEDOWNREQUEST = _descriptor.Descriptor( fields=[ _descriptor.FieldDescriptor( name='abuse_report_state', - full_name= - 'spotify_playlist_annotate3.proto.TakedownRequest.abuse_report_state', + full_name='spotify_playlist_annotate3.proto.TakedownRequest.abuse_report_state', index=0, number=1, type=14, @@ -136,8 +134,7 @@ _ANNOTATEREQUEST = _descriptor.Descriptor( fields=[ _descriptor.FieldDescriptor( name='description', - full_name= - 'spotify_playlist_annotate3.proto.AnnotateRequest.description', + full_name='spotify_playlist_annotate3.proto.AnnotateRequest.description', index=0, number=1, type=9, @@ -155,8 +152,7 @@ _ANNOTATEREQUEST = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='image_uri', - full_name= - 'spotify_playlist_annotate3.proto.AnnotateRequest.image_uri', + full_name='spotify_playlist_annotate3.proto.AnnotateRequest.image_uri', index=1, number=2, type=9, @@ -195,8 +191,7 @@ _TRANSCODEDPICTURE = _descriptor.Descriptor( fields=[ _descriptor.FieldDescriptor( name='target_name', - full_name= - 'spotify_playlist_annotate3.proto.TranscodedPicture.target_name', + full_name='spotify_playlist_annotate3.proto.TranscodedPicture.target_name', index=0, number=1, type=9, @@ -253,8 +248,7 @@ _PLAYLISTANNOTATION = _descriptor.Descriptor( fields=[ _descriptor.FieldDescriptor( name='description', - full_name= - 'spotify_playlist_annotate3.proto.PlaylistAnnotation.description', + full_name='spotify_playlist_annotate3.proto.PlaylistAnnotation.description', index=0, number=1, type=9, @@ -272,8 +266,7 @@ _PLAYLISTANNOTATION = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='picture', - full_name= - 'spotify_playlist_annotate3.proto.PlaylistAnnotation.picture', + full_name='spotify_playlist_annotate3.proto.PlaylistAnnotation.picture', index=1, number=2, type=9, @@ -291,8 +284,7 @@ _PLAYLISTANNOTATION = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='deprecated_render_features', - full_name= - 'spotify_playlist_annotate3.proto.PlaylistAnnotation.deprecated_render_features', + full_name='spotify_playlist_annotate3.proto.PlaylistAnnotation.deprecated_render_features', index=2, number=3, type=14, @@ -310,8 +302,7 @@ _PLAYLISTANNOTATION = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='transcoded_picture', - full_name= - 'spotify_playlist_annotate3.proto.PlaylistAnnotation.transcoded_picture', + full_name='spotify_playlist_annotate3.proto.PlaylistAnnotation.transcoded_picture', index=3, number=4, type=11, @@ -329,8 +320,7 @@ _PLAYLISTANNOTATION = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='is_abuse_reporting_enabled', - full_name= - 'spotify_playlist_annotate3.proto.PlaylistAnnotation.is_abuse_reporting_enabled', + full_name='spotify_playlist_annotate3.proto.PlaylistAnnotation.is_abuse_reporting_enabled', index=4, number=6, type=8, @@ -348,8 +338,7 @@ _PLAYLISTANNOTATION = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='abuse_report_state', - full_name= - 'spotify_playlist_annotate3.proto.PlaylistAnnotation.abuse_report_state', + full_name='spotify_playlist_annotate3.proto.PlaylistAnnotation.abuse_report_state', index=5, number=7, type=14, diff --git a/librespot/proto/Queue.py b/librespot/proto/Queue.py index 400b8eb..a5011a3 100644 --- a/librespot/proto/Queue.py +++ b/librespot/proto/Queue.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: queue.proto """Generated protocol buffer code.""" +import ContextTrack as context__track__pb2 from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -10,7 +11,6 @@ from google.protobuf import symbol_database as _symbol_database _sym_db = _symbol_database.Default() -import ContextTrack as context__track__pb2 DESCRIPTOR = _descriptor.FileDescriptor( name='queue.proto', @@ -18,8 +18,7 @@ DESCRIPTOR = _descriptor.FileDescriptor( syntax='proto2', serialized_options=b'\n\024com.spotify.transferH\002', create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n\x0bqueue.proto\x12\x1dspotify.player.proto.transfer\x1a\x13\x63ontext_track.proto\"U\n\x05Queue\x12\x32\n\x06tracks\x18\x01 \x03(\x0b\x32\".spotify.player.proto.ContextTrack\x12\x18\n\x10is_playing_queue\x18\x02 \x01(\x08\x42\x18\n\x14\x63om.spotify.transferH\x02', + serialized_pb=b'\n\x0bqueue.proto\x12\x1dspotify.player.proto.transfer\x1a\x13\x63ontext_track.proto\"U\n\x05Queue\x12\x32\n\x06tracks\x18\x01 \x03(\x0b\x32\".spotify.player.proto.ContextTrack\x12\x18\n\x10is_playing_queue\x18\x02 \x01(\x08\x42\x18\n\x14\x63om.spotify.transferH\x02', dependencies=[ context__track__pb2.DESCRIPTOR, ]) diff --git a/librespot/proto/Restrictions.py b/librespot/proto/Restrictions.py index 68ba70c..623c9f1 100644 --- a/librespot/proto/Restrictions.py +++ b/librespot/proto/Restrictions.py @@ -16,8 +16,7 @@ DESCRIPTOR = _descriptor.FileDescriptor( syntax='proto2', serialized_options=b'\n\023com.spotify.contextH\002', create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n\x12restrictions.proto\x12\x14spotify.player.proto\"\xbb\x07\n\x0cRestrictions\x12 \n\x18\x64isallow_pausing_reasons\x18\x01 \x03(\t\x12!\n\x19\x64isallow_resuming_reasons\x18\x02 \x03(\t\x12 \n\x18\x64isallow_seeking_reasons\x18\x03 \x03(\t\x12%\n\x1d\x64isallow_peeking_prev_reasons\x18\x04 \x03(\t\x12%\n\x1d\x64isallow_peeking_next_reasons\x18\x05 \x03(\t\x12&\n\x1e\x64isallow_skipping_prev_reasons\x18\x06 \x03(\t\x12&\n\x1e\x64isallow_skipping_next_reasons\x18\x07 \x03(\t\x12\x30\n(disallow_toggling_repeat_context_reasons\x18\x08 \x03(\t\x12.\n&disallow_toggling_repeat_track_reasons\x18\t \x03(\t\x12)\n!disallow_toggling_shuffle_reasons\x18\n \x03(\t\x12\"\n\x1a\x64isallow_set_queue_reasons\x18\x0b \x03(\t\x12.\n&disallow_interrupting_playback_reasons\x18\x0c \x03(\t\x12.\n&disallow_transferring_playback_reasons\x18\r \x03(\t\x12\'\n\x1f\x64isallow_remote_control_reasons\x18\x0e \x03(\t\x12\x33\n+disallow_inserting_into_next_tracks_reasons\x18\x0f \x03(\t\x12\x36\n.disallow_inserting_into_context_tracks_reasons\x18\x10 \x03(\t\x12\x32\n*disallow_reordering_in_next_tracks_reasons\x18\x11 \x03(\t\x12\x35\n-disallow_reordering_in_context_tracks_reasons\x18\x12 \x03(\t\x12\x32\n*disallow_removing_from_next_tracks_reasons\x18\x13 \x03(\t\x12\x35\n-disallow_removing_from_context_tracks_reasons\x18\x14 \x03(\t\x12)\n!disallow_updating_context_reasons\x18\x15 \x03(\tB\x17\n\x13\x63om.spotify.contextH\x02' + serialized_pb=b'\n\x12restrictions.proto\x12\x14spotify.player.proto\"\xbb\x07\n\x0cRestrictions\x12 \n\x18\x64isallow_pausing_reasons\x18\x01 \x03(\t\x12!\n\x19\x64isallow_resuming_reasons\x18\x02 \x03(\t\x12 \n\x18\x64isallow_seeking_reasons\x18\x03 \x03(\t\x12%\n\x1d\x64isallow_peeking_prev_reasons\x18\x04 \x03(\t\x12%\n\x1d\x64isallow_peeking_next_reasons\x18\x05 \x03(\t\x12&\n\x1e\x64isallow_skipping_prev_reasons\x18\x06 \x03(\t\x12&\n\x1e\x64isallow_skipping_next_reasons\x18\x07 \x03(\t\x12\x30\n(disallow_toggling_repeat_context_reasons\x18\x08 \x03(\t\x12.\n&disallow_toggling_repeat_track_reasons\x18\t \x03(\t\x12)\n!disallow_toggling_shuffle_reasons\x18\n \x03(\t\x12\"\n\x1a\x64isallow_set_queue_reasons\x18\x0b \x03(\t\x12.\n&disallow_interrupting_playback_reasons\x18\x0c \x03(\t\x12.\n&disallow_transferring_playback_reasons\x18\r \x03(\t\x12\'\n\x1f\x64isallow_remote_control_reasons\x18\x0e \x03(\t\x12\x33\n+disallow_inserting_into_next_tracks_reasons\x18\x0f \x03(\t\x12\x36\n.disallow_inserting_into_context_tracks_reasons\x18\x10 \x03(\t\x12\x32\n*disallow_reordering_in_next_tracks_reasons\x18\x11 \x03(\t\x12\x35\n-disallow_reordering_in_context_tracks_reasons\x18\x12 \x03(\t\x12\x32\n*disallow_removing_from_next_tracks_reasons\x18\x13 \x03(\t\x12\x35\n-disallow_removing_from_context_tracks_reasons\x18\x14 \x03(\t\x12)\n!disallow_updating_context_reasons\x18\x15 \x03(\tB\x17\n\x13\x63om.spotify.contextH\x02' ) _RESTRICTIONS = _descriptor.Descriptor( @@ -30,8 +29,7 @@ _RESTRICTIONS = _descriptor.Descriptor( fields=[ _descriptor.FieldDescriptor( name='disallow_pausing_reasons', - full_name= - 'spotify.player.proto.Restrictions.disallow_pausing_reasons', + full_name='spotify.player.proto.Restrictions.disallow_pausing_reasons', index=0, number=1, type=9, @@ -49,8 +47,7 @@ _RESTRICTIONS = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='disallow_resuming_reasons', - full_name= - 'spotify.player.proto.Restrictions.disallow_resuming_reasons', + full_name='spotify.player.proto.Restrictions.disallow_resuming_reasons', index=1, number=2, type=9, @@ -68,8 +65,7 @@ _RESTRICTIONS = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='disallow_seeking_reasons', - full_name= - 'spotify.player.proto.Restrictions.disallow_seeking_reasons', + full_name='spotify.player.proto.Restrictions.disallow_seeking_reasons', index=2, number=3, type=9, @@ -87,8 +83,7 @@ _RESTRICTIONS = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='disallow_peeking_prev_reasons', - full_name= - 'spotify.player.proto.Restrictions.disallow_peeking_prev_reasons', + full_name='spotify.player.proto.Restrictions.disallow_peeking_prev_reasons', index=3, number=4, type=9, @@ -106,8 +101,7 @@ _RESTRICTIONS = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='disallow_peeking_next_reasons', - full_name= - 'spotify.player.proto.Restrictions.disallow_peeking_next_reasons', + full_name='spotify.player.proto.Restrictions.disallow_peeking_next_reasons', index=4, number=5, type=9, @@ -125,8 +119,7 @@ _RESTRICTIONS = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='disallow_skipping_prev_reasons', - full_name= - 'spotify.player.proto.Restrictions.disallow_skipping_prev_reasons', + full_name='spotify.player.proto.Restrictions.disallow_skipping_prev_reasons', index=5, number=6, type=9, @@ -144,8 +137,7 @@ _RESTRICTIONS = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='disallow_skipping_next_reasons', - full_name= - 'spotify.player.proto.Restrictions.disallow_skipping_next_reasons', + full_name='spotify.player.proto.Restrictions.disallow_skipping_next_reasons', index=6, number=7, type=9, @@ -163,8 +155,7 @@ _RESTRICTIONS = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='disallow_toggling_repeat_context_reasons', - full_name= - 'spotify.player.proto.Restrictions.disallow_toggling_repeat_context_reasons', + full_name='spotify.player.proto.Restrictions.disallow_toggling_repeat_context_reasons', index=7, number=8, type=9, @@ -182,8 +173,7 @@ _RESTRICTIONS = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='disallow_toggling_repeat_track_reasons', - full_name= - 'spotify.player.proto.Restrictions.disallow_toggling_repeat_track_reasons', + full_name='spotify.player.proto.Restrictions.disallow_toggling_repeat_track_reasons', index=8, number=9, type=9, @@ -201,8 +191,7 @@ _RESTRICTIONS = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='disallow_toggling_shuffle_reasons', - full_name= - 'spotify.player.proto.Restrictions.disallow_toggling_shuffle_reasons', + full_name='spotify.player.proto.Restrictions.disallow_toggling_shuffle_reasons', index=9, number=10, type=9, @@ -220,8 +209,7 @@ _RESTRICTIONS = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='disallow_set_queue_reasons', - full_name= - 'spotify.player.proto.Restrictions.disallow_set_queue_reasons', + full_name='spotify.player.proto.Restrictions.disallow_set_queue_reasons', index=10, number=11, type=9, @@ -239,8 +227,7 @@ _RESTRICTIONS = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='disallow_interrupting_playback_reasons', - full_name= - 'spotify.player.proto.Restrictions.disallow_interrupting_playback_reasons', + full_name='spotify.player.proto.Restrictions.disallow_interrupting_playback_reasons', index=11, number=12, type=9, @@ -258,8 +245,7 @@ _RESTRICTIONS = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='disallow_transferring_playback_reasons', - full_name= - 'spotify.player.proto.Restrictions.disallow_transferring_playback_reasons', + full_name='spotify.player.proto.Restrictions.disallow_transferring_playback_reasons', index=12, number=13, type=9, @@ -277,8 +263,7 @@ _RESTRICTIONS = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='disallow_remote_control_reasons', - full_name= - 'spotify.player.proto.Restrictions.disallow_remote_control_reasons', + full_name='spotify.player.proto.Restrictions.disallow_remote_control_reasons', index=13, number=14, type=9, @@ -296,8 +281,7 @@ _RESTRICTIONS = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='disallow_inserting_into_next_tracks_reasons', - full_name= - 'spotify.player.proto.Restrictions.disallow_inserting_into_next_tracks_reasons', + full_name='spotify.player.proto.Restrictions.disallow_inserting_into_next_tracks_reasons', index=14, number=15, type=9, @@ -315,8 +299,7 @@ _RESTRICTIONS = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='disallow_inserting_into_context_tracks_reasons', - full_name= - 'spotify.player.proto.Restrictions.disallow_inserting_into_context_tracks_reasons', + full_name='spotify.player.proto.Restrictions.disallow_inserting_into_context_tracks_reasons', index=15, number=16, type=9, @@ -334,8 +317,7 @@ _RESTRICTIONS = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='disallow_reordering_in_next_tracks_reasons', - full_name= - 'spotify.player.proto.Restrictions.disallow_reordering_in_next_tracks_reasons', + full_name='spotify.player.proto.Restrictions.disallow_reordering_in_next_tracks_reasons', index=16, number=17, type=9, @@ -353,8 +335,7 @@ _RESTRICTIONS = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='disallow_reordering_in_context_tracks_reasons', - full_name= - 'spotify.player.proto.Restrictions.disallow_reordering_in_context_tracks_reasons', + full_name='spotify.player.proto.Restrictions.disallow_reordering_in_context_tracks_reasons', index=17, number=18, type=9, @@ -372,8 +353,7 @@ _RESTRICTIONS = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='disallow_removing_from_next_tracks_reasons', - full_name= - 'spotify.player.proto.Restrictions.disallow_removing_from_next_tracks_reasons', + full_name='spotify.player.proto.Restrictions.disallow_removing_from_next_tracks_reasons', index=18, number=19, type=9, @@ -391,8 +371,7 @@ _RESTRICTIONS = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='disallow_removing_from_context_tracks_reasons', - full_name= - 'spotify.player.proto.Restrictions.disallow_removing_from_context_tracks_reasons', + full_name='spotify.player.proto.Restrictions.disallow_removing_from_context_tracks_reasons', index=19, number=20, type=9, @@ -410,8 +389,7 @@ _RESTRICTIONS = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='disallow_updating_context_reasons', - full_name= - 'spotify.player.proto.Restrictions.disallow_updating_context_reasons', + full_name='spotify.player.proto.Restrictions.disallow_updating_context_reasons', index=20, number=21, type=9, diff --git a/librespot/proto/Session.py b/librespot/proto/Session.py index 1f7d051..ee64602 100644 --- a/librespot/proto/Session.py +++ b/librespot/proto/Session.py @@ -2,6 +2,9 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: session.proto """Generated protocol buffer code.""" +import PlayOrigin as play__origin__pb2 +import ContextPlayerOptions as context__player__options__pb2 +import Context as context__pb2 from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -10,9 +13,6 @@ from google.protobuf import symbol_database as _symbol_database _sym_db = _symbol_database.Default() -import Context as context__pb2 -import ContextPlayerOptions as context__player__options__pb2 -import PlayOrigin as play__origin__pb2 DESCRIPTOR = _descriptor.FileDescriptor( name='session.proto', @@ -20,8 +20,7 @@ DESCRIPTOR = _descriptor.FileDescriptor( syntax='proto2', serialized_options=b'\n\024com.spotify.transferH\002', create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n\rsession.proto\x12\x1dspotify.player.proto.transfer\x1a\rcontext.proto\x1a\x1c\x63ontext_player_options.proto\x1a\x11play_origin.proto\"\xd3\x01\n\x07Session\x12\x35\n\x0bplay_origin\x18\x01 \x01(\x0b\x32 .spotify.player.proto.PlayOrigin\x12.\n\x07\x63ontext\x18\x02 \x01(\x0b\x32\x1d.spotify.player.proto.Context\x12\x13\n\x0b\x63urrent_uid\x18\x03 \x01(\t\x12L\n\x10option_overrides\x18\x04 \x01(\x0b\x32\x32.spotify.player.proto.ContextPlayerOptionOverridesB\x18\n\x14\x63om.spotify.transferH\x02', + serialized_pb=b'\n\rsession.proto\x12\x1dspotify.player.proto.transfer\x1a\rcontext.proto\x1a\x1c\x63ontext_player_options.proto\x1a\x11play_origin.proto\"\xd3\x01\n\x07Session\x12\x35\n\x0bplay_origin\x18\x01 \x01(\x0b\x32 .spotify.player.proto.PlayOrigin\x12.\n\x07\x63ontext\x18\x02 \x01(\x0b\x32\x1d.spotify.player.proto.Context\x12\x13\n\x0b\x63urrent_uid\x18\x03 \x01(\t\x12L\n\x10option_overrides\x18\x04 \x01(\x0b\x32\x32.spotify.player.proto.ContextPlayerOptionOverridesB\x18\n\x14\x63om.spotify.transferH\x02', dependencies=[ context__pb2.DESCRIPTOR, context__player__options__pb2.DESCRIPTOR, diff --git a/librespot/proto/TransferState.py b/librespot/proto/TransferState.py index f42acfa..94c7f30 100644 --- a/librespot/proto/TransferState.py +++ b/librespot/proto/TransferState.py @@ -2,6 +2,10 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: transfer_state.proto """Generated protocol buffer code.""" +import Queue as queue__pb2 +import Session as session__pb2 +import Playback as playback__pb2 +import ContextPlayerOptions as context__player__options__pb2 from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -10,10 +14,6 @@ from google.protobuf import symbol_database as _symbol_database _sym_db = _symbol_database.Default() -import ContextPlayerOptions as context__player__options__pb2 -import Playback as playback__pb2 -import Session as session__pb2 -import Queue as queue__pb2 DESCRIPTOR = _descriptor.FileDescriptor( name='transfer_state.proto', @@ -21,8 +21,7 @@ DESCRIPTOR = _descriptor.FileDescriptor( syntax='proto2', serialized_options=b'\n\024com.spotify.transferH\002', create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n\x14transfer_state.proto\x12\x1dspotify.player.proto.transfer\x1a\x1c\x63ontext_player_options.proto\x1a\x0eplayback.proto\x1a\rsession.proto\x1a\x0bqueue.proto\"\x99\x02\n\rTransferState\x12;\n\x07options\x18\x01 \x01(\x0b\x32*.spotify.player.proto.ContextPlayerOptions\x12\x39\n\x08playback\x18\x02 \x01(\x0b\x32\'.spotify.player.proto.transfer.Playback\x12?\n\x0f\x63urrent_session\x18\x03 \x01(\x0b\x32&.spotify.player.proto.transfer.Session\x12\x33\n\x05queue\x18\x04 \x01(\x0b\x32$.spotify.player.proto.transfer.Queue\x12\x1a\n\x12\x63reation_timestamp\x18\x05 \x01(\x03\x42\x18\n\x14\x63om.spotify.transferH\x02', + serialized_pb=b'\n\x14transfer_state.proto\x12\x1dspotify.player.proto.transfer\x1a\x1c\x63ontext_player_options.proto\x1a\x0eplayback.proto\x1a\rsession.proto\x1a\x0bqueue.proto\"\x99\x02\n\rTransferState\x12;\n\x07options\x18\x01 \x01(\x0b\x32*.spotify.player.proto.ContextPlayerOptions\x12\x39\n\x08playback\x18\x02 \x01(\x0b\x32\'.spotify.player.proto.transfer.Playback\x12?\n\x0f\x63urrent_session\x18\x03 \x01(\x0b\x32&.spotify.player.proto.transfer.Session\x12\x33\n\x05queue\x18\x04 \x01(\x0b\x32$.spotify.player.proto.transfer.Queue\x12\x1a\n\x12\x63reation_timestamp\x18\x05 \x01(\x03\x42\x18\n\x14\x63om.spotify.transferH\x02', dependencies=[ context__player__options__pb2.DESCRIPTOR, playback__pb2.DESCRIPTOR, @@ -76,8 +75,7 @@ _TRANSFERSTATE = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='current_session', - full_name= - 'spotify.player.proto.transfer.TransferState.current_session', + full_name='spotify.player.proto.transfer.TransferState.current_session', index=2, number=3, type=11, @@ -113,8 +111,7 @@ _TRANSFERSTATE = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='creation_timestamp', - full_name= - 'spotify.player.proto.transfer.TransferState.creation_timestamp', + full_name='spotify.player.proto.transfer.TransferState.creation_timestamp', index=4, number=5, type=3, diff --git a/librespot/proto/spotify/login5/v3/ClientInfo.py b/librespot/proto/spotify/login5/v3/ClientInfo.py index f013e1c..da8b651 100644 --- a/librespot/proto/spotify/login5/v3/ClientInfo.py +++ b/librespot/proto/spotify/login5/v3/ClientInfo.py @@ -16,8 +16,7 @@ DESCRIPTOR = _descriptor.FileDescriptor( syntax='proto3', serialized_options=b'\n\024com.spotify.login5v3', create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n#spotify/login5/v3/client_info.proto\x12\x11spotify.login5.v3\"2\n\nClientInfo\x12\x11\n\tclient_id\x18\x01 \x01(\t\x12\x11\n\tdevice_id\x18\x02 \x01(\tB\x16\n\x14\x63om.spotify.login5v3b\x06proto3' + serialized_pb=b'\n#spotify/login5/v3/client_info.proto\x12\x11spotify.login5.v3\"2\n\nClientInfo\x12\x11\n\tclient_id\x18\x01 \x01(\t\x12\x11\n\tdevice_id\x18\x02 \x01(\tB\x16\n\x14\x63om.spotify.login5v3b\x06proto3' ) _CLIENTINFO = _descriptor.Descriptor( diff --git a/librespot/proto/spotify/login5/v3/Login5.py b/librespot/proto/spotify/login5/v3/Login5.py index 38f3aac..700a8cb 100644 --- a/librespot/proto/spotify/login5/v3/Login5.py +++ b/librespot/proto/spotify/login5/v3/Login5.py @@ -2,6 +2,12 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: spotify/login5/v3/login5.proto """Generated protocol buffer code.""" +from spotify.login5.v3.identifiers import identifiers_pb2 as spotify_dot_login5_dot_v3_dot_identifiers_dot_identifiers__pb2 +from spotify.login5.v3.credentials import credentials_pb2 as spotify_dot_login5_dot_v3_dot_credentials_dot_credentials__pb2 +from spotify.login5.v3.challenges import hashcash_pb2 as spotify_dot_login5_dot_v3_dot_challenges_dot_hashcash__pb2 +from spotify.login5.v3.challenges import code_pb2 as spotify_dot_login5_dot_v3_dot_challenges_dot_code__pb2 +from spotify.login5.v3 import user_info_pb2 as spotify_dot_login5_dot_v3_dot_user__info__pb2 +from spotify.login5.v3 import client_info_pb2 as spotify_dot_login5_dot_v3_dot_client__info__pb2 from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message @@ -11,12 +17,6 @@ from google.protobuf import symbol_database as _symbol_database _sym_db = _symbol_database.Default() -from spotify.login5.v3 import client_info_pb2 as spotify_dot_login5_dot_v3_dot_client__info__pb2 -from spotify.login5.v3 import user_info_pb2 as spotify_dot_login5_dot_v3_dot_user__info__pb2 -from spotify.login5.v3.challenges import code_pb2 as spotify_dot_login5_dot_v3_dot_challenges_dot_code__pb2 -from spotify.login5.v3.challenges import hashcash_pb2 as spotify_dot_login5_dot_v3_dot_challenges_dot_hashcash__pb2 -from spotify.login5.v3.credentials import credentials_pb2 as spotify_dot_login5_dot_v3_dot_credentials_dot_credentials__pb2 -from spotify.login5.v3.identifiers import identifiers_pb2 as spotify_dot_login5_dot_v3_dot_identifiers_dot_identifiers__pb2 DESCRIPTOR = _descriptor.FileDescriptor( name='spotify/login5/v3/login5.proto', @@ -24,8 +24,7 @@ DESCRIPTOR = _descriptor.FileDescriptor( syntax='proto3', serialized_options=b'\n\024com.spotify.login5v3', create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n\x1espotify/login5/v3/login5.proto\x12\x11spotify.login5.v3\x1a#spotify/login5/v3/client_info.proto\x1a!spotify/login5/v3/user_info.proto\x1a\'spotify/login5/v3/challenges/code.proto\x1a+spotify/login5/v3/challenges/hashcash.proto\x1a/spotify/login5/v3/credentials/credentials.proto\x1a/spotify/login5/v3/identifiers/identifiers.proto\">\n\nChallenges\x12\x30\n\nchallenges\x18\x01 \x03(\x0b\x32\x1c.spotify.login5.v3.Challenge\"\x89\x01\n\tChallenge\x12\x41\n\x08hashcash\x18\x01 \x01(\x0b\x32/.spotify.login5.v3.challenges.HashcashChallenge\x12\x39\n\x04\x63ode\x18\x02 \x01(\x0b\x32+.spotify.login5.v3.challenges.CodeChallenge\"M\n\x12\x43hallengeSolutions\x12\x37\n\tsolutions\x18\x01 \x03(\x0b\x32$.spotify.login5.v3.ChallengeSolution\"\x8f\x01\n\x11\x43hallengeSolution\x12@\n\x08hashcash\x18\x01 \x01(\x0b\x32..spotify.login5.v3.challenges.HashcashSolution\x12\x38\n\x04\x63ode\x18\x02 \x01(\x0b\x32*.spotify.login5.v3.challenges.CodeSolution\"\xad\x05\n\x0cLoginRequest\x12\x32\n\x0b\x63lient_info\x18\x01 \x01(\x0b\x32\x1d.spotify.login5.v3.ClientInfo\x12\x15\n\rlogin_context\x18\x02 \x01(\x0c\x12\x42\n\x13\x63hallenge_solutions\x18\x03 \x01(\x0b\x32%.spotify.login5.v3.ChallengeSolutions\x12J\n\x11stored_credential\x18\x64 \x01(\x0b\x32/.spotify.login5.v3.credentials.StoredCredential\x12\x39\n\x08password\x18\x65 \x01(\x0b\x32\'.spotify.login5.v3.credentials.Password\x12Q\n\x15\x66\x61\x63\x65\x62ook_access_token\x18\x66 \x01(\x0b\x32\x32.spotify.login5.v3.credentials.FacebookAccessToken\x12@\n\x0cphone_number\x18g \x01(\x0b\x32*.spotify.login5.v3.identifiers.PhoneNumber\x12\x43\n\x0eone_time_token\x18h \x01(\x0b\x32+.spotify.login5.v3.credentials.OneTimeToken\x12U\n\x17parent_child_credential\x18i \x01(\x0b\x32\x34.spotify.login5.v3.credentials.ParentChildCredential\x12V\n\x18\x61pple_sign_in_credential\x18j \x01(\x0b\x32\x34.spotify.login5.v3.credentials.AppleSignInCredential\"m\n\x07LoginOk\x12\x10\n\x08username\x18\x01 \x01(\t\x12\x14\n\x0c\x61\x63\x63\x65ss_token\x18\x02 \x01(\t\x12\x19\n\x11stored_credential\x18\x03 \x01(\x0c\x12\x1f\n\x17\x61\x63\x63\x65ss_token_expires_in\x18\x04 \x01(\x05\"\xf8\x02\n\rLoginResponse\x12&\n\x02ok\x18\x01 \x01(\x0b\x32\x1a.spotify.login5.v3.LoginOk\x12,\n\x05\x65rror\x18\x02 \x01(\x0e\x32\x1d.spotify.login5.v3.LoginError\x12\x31\n\nchallenges\x18\x03 \x01(\x0b\x32\x1d.spotify.login5.v3.Challenges\x12;\n\x08warnings\x18\x04 \x03(\x0e\x32).spotify.login5.v3.LoginResponse.Warnings\x12\x15\n\rlogin_context\x18\x05 \x01(\x0c\x12\x18\n\x10identifier_token\x18\x06 \x01(\t\x12.\n\tuser_info\x18\x07 \x01(\x0b\x32\x1b.spotify.login5.v3.UserInfo\"@\n\x08Warnings\x12\x13\n\x0fUNKNOWN_WARNING\x10\x00\x12\x1f\n\x1b\x44\x45PRECATED_PROTOCOL_VERSION\x10\x01*\xd3\x01\n\nLoginError\x12\x11\n\rUNKNOWN_ERROR\x10\x00\x12\x17\n\x13INVALID_CREDENTIALS\x10\x01\x12\x0f\n\x0b\x42\x41\x44_REQUEST\x10\x02\x12\x1e\n\x1aUNSUPPORTED_LOGIN_PROTOCOL\x10\x03\x12\x0b\n\x07TIMEOUT\x10\x04\x12\x16\n\x12UNKNOWN_IDENTIFIER\x10\x05\x12\x15\n\x11TOO_MANY_ATTEMPTS\x10\x06\x12\x17\n\x13INVALID_PHONENUMBER\x10\x07\x12\x13\n\x0fTRY_AGAIN_LATER\x10\x08\x42\x16\n\x14\x63om.spotify.login5v3b\x06proto3', + serialized_pb=b'\n\x1espotify/login5/v3/login5.proto\x12\x11spotify.login5.v3\x1a#spotify/login5/v3/client_info.proto\x1a!spotify/login5/v3/user_info.proto\x1a\'spotify/login5/v3/challenges/code.proto\x1a+spotify/login5/v3/challenges/hashcash.proto\x1a/spotify/login5/v3/credentials/credentials.proto\x1a/spotify/login5/v3/identifiers/identifiers.proto\">\n\nChallenges\x12\x30\n\nchallenges\x18\x01 \x03(\x0b\x32\x1c.spotify.login5.v3.Challenge\"\x89\x01\n\tChallenge\x12\x41\n\x08hashcash\x18\x01 \x01(\x0b\x32/.spotify.login5.v3.challenges.HashcashChallenge\x12\x39\n\x04\x63ode\x18\x02 \x01(\x0b\x32+.spotify.login5.v3.challenges.CodeChallenge\"M\n\x12\x43hallengeSolutions\x12\x37\n\tsolutions\x18\x01 \x03(\x0b\x32$.spotify.login5.v3.ChallengeSolution\"\x8f\x01\n\x11\x43hallengeSolution\x12@\n\x08hashcash\x18\x01 \x01(\x0b\x32..spotify.login5.v3.challenges.HashcashSolution\x12\x38\n\x04\x63ode\x18\x02 \x01(\x0b\x32*.spotify.login5.v3.challenges.CodeSolution\"\xad\x05\n\x0cLoginRequest\x12\x32\n\x0b\x63lient_info\x18\x01 \x01(\x0b\x32\x1d.spotify.login5.v3.ClientInfo\x12\x15\n\rlogin_context\x18\x02 \x01(\x0c\x12\x42\n\x13\x63hallenge_solutions\x18\x03 \x01(\x0b\x32%.spotify.login5.v3.ChallengeSolutions\x12J\n\x11stored_credential\x18\x64 \x01(\x0b\x32/.spotify.login5.v3.credentials.StoredCredential\x12\x39\n\x08password\x18\x65 \x01(\x0b\x32\'.spotify.login5.v3.credentials.Password\x12Q\n\x15\x66\x61\x63\x65\x62ook_access_token\x18\x66 \x01(\x0b\x32\x32.spotify.login5.v3.credentials.FacebookAccessToken\x12@\n\x0cphone_number\x18g \x01(\x0b\x32*.spotify.login5.v3.identifiers.PhoneNumber\x12\x43\n\x0eone_time_token\x18h \x01(\x0b\x32+.spotify.login5.v3.credentials.OneTimeToken\x12U\n\x17parent_child_credential\x18i \x01(\x0b\x32\x34.spotify.login5.v3.credentials.ParentChildCredential\x12V\n\x18\x61pple_sign_in_credential\x18j \x01(\x0b\x32\x34.spotify.login5.v3.credentials.AppleSignInCredential\"m\n\x07LoginOk\x12\x10\n\x08username\x18\x01 \x01(\t\x12\x14\n\x0c\x61\x63\x63\x65ss_token\x18\x02 \x01(\t\x12\x19\n\x11stored_credential\x18\x03 \x01(\x0c\x12\x1f\n\x17\x61\x63\x63\x65ss_token_expires_in\x18\x04 \x01(\x05\"\xf8\x02\n\rLoginResponse\x12&\n\x02ok\x18\x01 \x01(\x0b\x32\x1a.spotify.login5.v3.LoginOk\x12,\n\x05\x65rror\x18\x02 \x01(\x0e\x32\x1d.spotify.login5.v3.LoginError\x12\x31\n\nchallenges\x18\x03 \x01(\x0b\x32\x1d.spotify.login5.v3.Challenges\x12;\n\x08warnings\x18\x04 \x03(\x0e\x32).spotify.login5.v3.LoginResponse.Warnings\x12\x15\n\rlogin_context\x18\x05 \x01(\x0c\x12\x18\n\x10identifier_token\x18\x06 \x01(\t\x12.\n\tuser_info\x18\x07 \x01(\x0b\x32\x1b.spotify.login5.v3.UserInfo\"@\n\x08Warnings\x12\x13\n\x0fUNKNOWN_WARNING\x10\x00\x12\x1f\n\x1b\x44\x45PRECATED_PROTOCOL_VERSION\x10\x01*\xd3\x01\n\nLoginError\x12\x11\n\rUNKNOWN_ERROR\x10\x00\x12\x17\n\x13INVALID_CREDENTIALS\x10\x01\x12\x0f\n\x0b\x42\x41\x44_REQUEST\x10\x02\x12\x1e\n\x1aUNSUPPORTED_LOGIN_PROTOCOL\x10\x03\x12\x0b\n\x07TIMEOUT\x10\x04\x12\x16\n\x12UNKNOWN_IDENTIFIER\x10\x05\x12\x15\n\x11TOO_MANY_ATTEMPTS\x10\x06\x12\x17\n\x13INVALID_PHONENUMBER\x10\x07\x12\x13\n\x0fTRY_AGAIN_LATER\x10\x08\x42\x16\n\x14\x63om.spotify.login5v3b\x06proto3', dependencies=[ spotify_dot_login5_dot_v3_dot_client__info__pb2.DESCRIPTOR, spotify_dot_login5_dot_v3_dot_user__info__pb2.DESCRIPTOR, diff --git a/librespot/proto/spotify/login5/v3/UserInfo.py b/librespot/proto/spotify/login5/v3/UserInfo.py index 85ee0d9..5270c39 100644 --- a/librespot/proto/spotify/login5/v3/UserInfo.py +++ b/librespot/proto/spotify/login5/v3/UserInfo.py @@ -16,8 +16,7 @@ DESCRIPTOR = _descriptor.FileDescriptor( syntax='proto3', serialized_options=b'\n\024com.spotify.login5v3', create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n!spotify/login5/v3/user_info.proto\x12\x11spotify.login5.v3\"\x97\x02\n\x08UserInfo\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05\x65mail\x18\x02 \x01(\t\x12\x16\n\x0e\x65mail_verified\x18\x03 \x01(\x08\x12\x11\n\tbirthdate\x18\x04 \x01(\t\x12\x32\n\x06gender\x18\x05 \x01(\x0e\x32\".spotify.login5.v3.UserInfo.Gender\x12\x14\n\x0cphone_number\x18\x06 \x01(\t\x12\x1d\n\x15phone_number_verified\x18\x07 \x01(\x08\x12 \n\x18\x65mail_already_registered\x18\x08 \x01(\x08\"8\n\x06Gender\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04MALE\x10\x01\x12\n\n\x06\x46\x45MALE\x10\x02\x12\x0b\n\x07NEUTRAL\x10\x03\x42\x16\n\x14\x63om.spotify.login5v3b\x06proto3' + serialized_pb=b'\n!spotify/login5/v3/user_info.proto\x12\x11spotify.login5.v3\"\x97\x02\n\x08UserInfo\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05\x65mail\x18\x02 \x01(\t\x12\x16\n\x0e\x65mail_verified\x18\x03 \x01(\x08\x12\x11\n\tbirthdate\x18\x04 \x01(\t\x12\x32\n\x06gender\x18\x05 \x01(\x0e\x32\".spotify.login5.v3.UserInfo.Gender\x12\x14\n\x0cphone_number\x18\x06 \x01(\t\x12\x1d\n\x15phone_number_verified\x18\x07 \x01(\x08\x12 \n\x18\x65mail_already_registered\x18\x08 \x01(\x08\"8\n\x06Gender\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04MALE\x10\x01\x12\n\n\x06\x46\x45MALE\x10\x02\x12\x0b\n\x07NEUTRAL\x10\x03\x42\x16\n\x14\x63om.spotify.login5v3b\x06proto3' ) _USERINFO_GENDER = _descriptor.EnumDescriptor( diff --git a/librespot/proto/spotify/login5/v3/challenges/Code.py b/librespot/proto/spotify/login5/v3/challenges/Code.py index b5db3d2..3c7d52b 100644 --- a/librespot/proto/spotify/login5/v3/challenges/Code.py +++ b/librespot/proto/spotify/login5/v3/challenges/Code.py @@ -16,8 +16,7 @@ DESCRIPTOR = _descriptor.FileDescriptor( syntax='proto3', serialized_options=b'\n\024com.spotify.login5v3', create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n\'spotify/login5/v3/challenges/code.proto\x12\x1cspotify.login5.v3.challenges\"\xbc\x01\n\rCodeChallenge\x12\x42\n\x06method\x18\x01 \x01(\x0e\x32\x32.spotify.login5.v3.challenges.CodeChallenge.Method\x12\x13\n\x0b\x63ode_length\x18\x02 \x01(\x05\x12\x12\n\nexpires_in\x18\x03 \x01(\x05\x12\x1e\n\x16\x63\x61nonical_phone_number\x18\x04 \x01(\t\"\x1e\n\x06Method\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x07\n\x03SMS\x10\x01\"\x1c\n\x0c\x43odeSolution\x12\x0c\n\x04\x63ode\x18\x01 \x01(\tB\x16\n\x14\x63om.spotify.login5v3b\x06proto3' + serialized_pb=b'\n\'spotify/login5/v3/challenges/code.proto\x12\x1cspotify.login5.v3.challenges\"\xbc\x01\n\rCodeChallenge\x12\x42\n\x06method\x18\x01 \x01(\x0e\x32\x32.spotify.login5.v3.challenges.CodeChallenge.Method\x12\x13\n\x0b\x63ode_length\x18\x02 \x01(\x05\x12\x12\n\nexpires_in\x18\x03 \x01(\x05\x12\x1e\n\x16\x63\x61nonical_phone_number\x18\x04 \x01(\t\"\x1e\n\x06Method\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x07\n\x03SMS\x10\x01\"\x1c\n\x0c\x43odeSolution\x12\x0c\n\x04\x63ode\x18\x01 \x01(\tB\x16\n\x14\x63om.spotify.login5v3b\x06proto3' ) _CODECHALLENGE_METHOD = _descriptor.EnumDescriptor( @@ -113,8 +112,7 @@ _CODECHALLENGE = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='canonical_phone_number', - full_name= - 'spotify.login5.v3.challenges.CodeChallenge.canonical_phone_number', + full_name='spotify.login5.v3.challenges.CodeChallenge.canonical_phone_number', index=3, number=4, type=9, diff --git a/librespot/proto/spotify/login5/v3/challenges/Hashcash.py b/librespot/proto/spotify/login5/v3/challenges/Hashcash.py index 7b211f7..3ffdb95 100644 --- a/librespot/proto/spotify/login5/v3/challenges/Hashcash.py +++ b/librespot/proto/spotify/login5/v3/challenges/Hashcash.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: spotify/login5/v3/challenges/hashcash.proto """Generated protocol buffer code.""" +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -10,7 +11,6 @@ from google.protobuf import symbol_database as _symbol_database _sym_db = _symbol_database.Default() -from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 DESCRIPTOR = _descriptor.FileDescriptor( name='spotify/login5/v3/challenges/hashcash.proto', @@ -18,8 +18,7 @@ DESCRIPTOR = _descriptor.FileDescriptor( syntax='proto3', serialized_options=b'\n\024com.spotify.login5v3', create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n+spotify/login5/v3/challenges/hashcash.proto\x12\x1cspotify.login5.v3.challenges\x1a\x1egoogle/protobuf/duration.proto\"3\n\x11HashcashChallenge\x12\x0e\n\x06prefix\x18\x01 \x01(\x0c\x12\x0e\n\x06length\x18\x02 \x01(\x05\"O\n\x10HashcashSolution\x12\x0e\n\x06suffix\x18\x01 \x01(\x0c\x12+\n\x08\x64uration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationB\x16\n\x14\x63om.spotify.login5v3b\x06proto3', + serialized_pb=b'\n+spotify/login5/v3/challenges/hashcash.proto\x12\x1cspotify.login5.v3.challenges\x1a\x1egoogle/protobuf/duration.proto\"3\n\x11HashcashChallenge\x12\x0e\n\x06prefix\x18\x01 \x01(\x0c\x12\x0e\n\x06length\x18\x02 \x01(\x05\"O\n\x10HashcashSolution\x12\x0e\n\x06suffix\x18\x01 \x01(\x0c\x12+\n\x08\x64uration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationB\x16\n\x14\x63om.spotify.login5v3b\x06proto3', dependencies=[ google_dot_protobuf_dot_duration__pb2.DESCRIPTOR, ]) diff --git a/librespot/proto/spotify/login5/v3/credentials/Credentials.py b/librespot/proto/spotify/login5/v3/credentials/Credentials.py index d4e7d55..dd4bbe3 100644 --- a/librespot/proto/spotify/login5/v3/credentials/Credentials.py +++ b/librespot/proto/spotify/login5/v3/credentials/Credentials.py @@ -16,8 +16,7 @@ DESCRIPTOR = _descriptor.FileDescriptor( syntax='proto3', serialized_options=b'\n\024com.spotify.login5v3', create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n/spotify/login5/v3/credentials/credentials.proto\x12\x1dspotify.login5.v3.credentials\"2\n\x10StoredCredential\x12\x10\n\x08username\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\"9\n\x08Password\x12\n\n\x02id\x18\x01 \x01(\t\x12\x10\n\x08password\x18\x02 \x01(\t\x12\x0f\n\x07padding\x18\x03 \x01(\x0c\";\n\x13\x46\x61\x63\x65\x62ookAccessToken\x12\x0e\n\x06\x66\x62_uid\x18\x01 \x01(\t\x12\x14\n\x0c\x61\x63\x63\x65ss_token\x18\x02 \x01(\t\"\x1d\n\x0cOneTimeToken\x12\r\n\x05token\x18\x01 \x01(\t\"|\n\x15ParentChildCredential\x12\x10\n\x08\x63hild_id\x18\x01 \x01(\t\x12Q\n\x18parent_stored_credential\x18\x02 \x01(\x0b\x32/.spotify.login5.v3.credentials.StoredCredential\"S\n\x15\x41ppleSignInCredential\x12\x11\n\tauth_code\x18\x01 \x01(\t\x12\x14\n\x0credirect_uri\x18\x02 \x01(\t\x12\x11\n\tbundle_id\x18\x03 \x01(\tB\x16\n\x14\x63om.spotify.login5v3b\x06proto3' + serialized_pb=b'\n/spotify/login5/v3/credentials/credentials.proto\x12\x1dspotify.login5.v3.credentials\"2\n\x10StoredCredential\x12\x10\n\x08username\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\"9\n\x08Password\x12\n\n\x02id\x18\x01 \x01(\t\x12\x10\n\x08password\x18\x02 \x01(\t\x12\x0f\n\x07padding\x18\x03 \x01(\x0c\";\n\x13\x46\x61\x63\x65\x62ookAccessToken\x12\x0e\n\x06\x66\x62_uid\x18\x01 \x01(\t\x12\x14\n\x0c\x61\x63\x63\x65ss_token\x18\x02 \x01(\t\"\x1d\n\x0cOneTimeToken\x12\r\n\x05token\x18\x01 \x01(\t\"|\n\x15ParentChildCredential\x12\x10\n\x08\x63hild_id\x18\x01 \x01(\t\x12Q\n\x18parent_stored_credential\x18\x02 \x01(\x0b\x32/.spotify.login5.v3.credentials.StoredCredential\"S\n\x15\x41ppleSignInCredential\x12\x11\n\tauth_code\x18\x01 \x01(\t\x12\x14\n\x0credirect_uri\x18\x02 \x01(\t\x12\x11\n\tbundle_id\x18\x03 \x01(\tB\x16\n\x14\x63om.spotify.login5v3b\x06proto3' ) _STOREDCREDENTIAL = _descriptor.Descriptor( @@ -162,8 +161,7 @@ _FACEBOOKACCESSTOKEN = _descriptor.Descriptor( fields=[ _descriptor.FieldDescriptor( name='fb_uid', - full_name= - 'spotify.login5.v3.credentials.FacebookAccessToken.fb_uid', + full_name='spotify.login5.v3.credentials.FacebookAccessToken.fb_uid', index=0, number=1, type=9, @@ -181,8 +179,7 @@ _FACEBOOKACCESSTOKEN = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='access_token', - full_name= - 'spotify.login5.v3.credentials.FacebookAccessToken.access_token', + full_name='spotify.login5.v3.credentials.FacebookAccessToken.access_token', index=1, number=2, type=9, @@ -260,8 +257,7 @@ _PARENTCHILDCREDENTIAL = _descriptor.Descriptor( fields=[ _descriptor.FieldDescriptor( name='child_id', - full_name= - 'spotify.login5.v3.credentials.ParentChildCredential.child_id', + full_name='spotify.login5.v3.credentials.ParentChildCredential.child_id', index=0, number=1, type=9, @@ -279,8 +275,7 @@ _PARENTCHILDCREDENTIAL = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='parent_stored_credential', - full_name= - 'spotify.login5.v3.credentials.ParentChildCredential.parent_stored_credential', + full_name='spotify.login5.v3.credentials.ParentChildCredential.parent_stored_credential', index=1, number=2, type=11, @@ -319,8 +314,7 @@ _APPLESIGNINCREDENTIAL = _descriptor.Descriptor( fields=[ _descriptor.FieldDescriptor( name='auth_code', - full_name= - 'spotify.login5.v3.credentials.AppleSignInCredential.auth_code', + full_name='spotify.login5.v3.credentials.AppleSignInCredential.auth_code', index=0, number=1, type=9, @@ -338,8 +332,7 @@ _APPLESIGNINCREDENTIAL = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='redirect_uri', - full_name= - 'spotify.login5.v3.credentials.AppleSignInCredential.redirect_uri', + full_name='spotify.login5.v3.credentials.AppleSignInCredential.redirect_uri', index=1, number=2, type=9, @@ -357,8 +350,7 @@ _APPLESIGNINCREDENTIAL = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='bundle_id', - full_name= - 'spotify.login5.v3.credentials.AppleSignInCredential.bundle_id', + full_name='spotify.login5.v3.credentials.AppleSignInCredential.bundle_id', index=2, number=3, type=9, diff --git a/librespot/proto/spotify/login5/v3/identifiers/Identifiers.py b/librespot/proto/spotify/login5/v3/identifiers/Identifiers.py index 1091d1f..7199728 100644 --- a/librespot/proto/spotify/login5/v3/identifiers/Identifiers.py +++ b/librespot/proto/spotify/login5/v3/identifiers/Identifiers.py @@ -16,8 +16,7 @@ DESCRIPTOR = _descriptor.FileDescriptor( syntax='proto3', serialized_options=b'\n\024com.spotify.login5v3', create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n/spotify/login5/v3/identifiers/identifiers.proto\x12\x1dspotify.login5.v3.identifiers\"U\n\x0bPhoneNumber\x12\x0e\n\x06number\x18\x01 \x01(\t\x12\x18\n\x10iso_country_code\x18\x02 \x01(\t\x12\x1c\n\x14\x63ountry_calling_code\x18\x03 \x01(\tB\x16\n\x14\x63om.spotify.login5v3b\x06proto3' + serialized_pb=b'\n/spotify/login5/v3/identifiers/identifiers.proto\x12\x1dspotify.login5.v3.identifiers\"U\n\x0bPhoneNumber\x12\x0e\n\x06number\x18\x01 \x01(\t\x12\x18\n\x10iso_country_code\x18\x02 \x01(\t\x12\x1c\n\x14\x63ountry_calling_code\x18\x03 \x01(\tB\x16\n\x14\x63om.spotify.login5v3b\x06proto3' ) _PHONENUMBER = _descriptor.Descriptor( @@ -48,8 +47,7 @@ _PHONENUMBER = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='iso_country_code', - full_name= - 'spotify.login5.v3.identifiers.PhoneNumber.iso_country_code', + full_name='spotify.login5.v3.identifiers.PhoneNumber.iso_country_code', index=1, number=2, type=9, @@ -67,8 +65,7 @@ _PHONENUMBER = _descriptor.Descriptor( create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='country_calling_code', - full_name= - 'spotify.login5.v3.identifiers.PhoneNumber.country_calling_code', + full_name='spotify.login5.v3.identifiers.PhoneNumber.country_calling_code', index=2, number=3, type=9,