· 6 years ago · Sep 08, 2019, 07:20 PM
1################# POST request sent from Web UI to JF Server when trying to Play to a device #################
2https://jf.example.com/emby/Sessions/21b4f3891c98bca31fe0ca9dd85f697a/Playing?ItemIds=354468067119fd1437ffb8effeacec4b&PlayCommand=PlayNow
3
4
5################# From JF server debug log #################
6[20:09:36] [DBG] HTTP http://jf.example.com/emby/Sessions/21b4f3891c98bca31fe0ca9dd85f697a/Playing?ItemIds=354468067119fd1437ffb8effeacec4b&PlayCommand=PlayNow Mozilla/5.0 (X11; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0 UserAgent: POST
7Headers: [{"Key": "Connection", "Value": ["close"], "$type": "KeyValuePair`2"}, {"Key": "Accept", "Value": ["*/*"], "$type": "KeyValuePair`2"}, {"Key": "Accept-Encoding", "Value": ["gzip, deflate, br"], "$type": "KeyValuePair`2"}, {"Key": "Accept-Language", "Value": ["en-US,en;q=0.5"], "$type": "KeyValuePair`2"}, {"Key": "Host", "Value": ["jf.example.com"], "$type": "KeyValuePair`2"}, {"Key": "Referer", "Value": ["https://jf.example.com/web/index.html"], "$type": "KeyValuePair`2"}, {"Key": "User-Agent", "Value": ["Mozilla/5.0 (X11; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"], "$type": "KeyValuePair`2"}, {"Key": "Origin", "Value": ["https://jf.example.com"], "$type": "KeyValuePair`2"}, {"Key": "Content-Length", "Value": ["0"], "$type": "KeyValuePair`2"}, {"Key": "X-Real-IP", "Value": ["192.168.0.148"], "$type": "KeyValuePair`2"}, {"Key": "X-Forwarded-For", "Value": ["192.168.0.148"], "$type": "KeyValuePair`2"}, {"Key": "X-Forwarded-Proto", "Value": ["192.168.0.148"], "$type": "KeyValuePair`2"}, {"Key": "X-Forwarded-Protocol", "Value": ["https"], "$type": "KeyValuePair`2"}, {"Key": "X-Forwarded-Host", "Value": ["jf.example.com"], "$type": "KeyValuePair`2"}, {"Key": "x-emby-authorization", "Value": ["MediaBrowser Client=\"Jellyfin Web\", Device=\"Firefox\", DeviceId=\"TW96aWxsYS81LjAgKFgxMTsgTGludXggeDg2XzY0OyBydjo2NC4wKSBHZWNrby8yMDEwMDEwMSBGaXJlZm94LzY0LjB8MTU0ODUzODU2MzAxMQ11\", Version=\"10.3.7\", Token=\"182fcbee85b4432e83956b9f0ed0c895\""], "$type": "KeyValuePair`2"}]
8[20:09:36] [DBG] Query requires post-filtering due to LinkedChildren. Type: Playlist
9[20:09:36] [DBG] HTTP Response 204 to 192.168.0.148. Time: 0:00:00.0978916. http://jf.example.com/emby/Sessions/21b4f3891c98bca31fe0ca9dd85f697a/Playing?ItemIds=354468067119fd1437ffb8effeacec4b&PlayCommand=PlayNow
10[20:09:36] [DBG] HTTP http://jf.example.com/emby/Users/3920b99003194448a2a9d4f0bedd3d82/Items?Fields=Path%2CGenres%2CSortName%2CStudios%2CWriter%2CTaglines%2CLocalTrailerCount%2COfficialRating%2CCumulativeRunTimeTicks%2CItemCounts%2CMetascore%2CAirTime%2CDateCreated%2CPeople%2COverview%2CCriticRating%2CCriticRatingSummary%2CEtag%2CShortOverview%2CProductionLocations%2CTags%2CProviderIds%2CParentId%2CRemoteTrailers%2CSpecialEpisodeNumbers%2CMediaSources%2CVoteCount%2CRecursiveItemCount%2CPrimaryImageAspectRatio&Ids=df3e113a990a813a434e07c0f7e3d7fa%2C656e10dc916933ff598a5b68babde709%2Cee80cac1f69a72999f96b502c5be9639 Jellyfin-Kodi/0.2.1 UserAgent: GET
11
12
13################# payload received by kodi/web/android from JF server #################
14################# The 'Id' value is the session ID ##################
15{'ControllingUserId': '3920b99003194448a2a9d4f0bedd3d82',
16 'Id': '21b4f3891c98bca31fe0ca9dd85f697a',
17 'ItemIds': ['df3e113a990a813a434e07c0f7e3d7fa',
18 '656e10dc916933ff598a5b68babde709',
19 'ee80cac1f69a72999f96b502c5be9639'],
20 'PlayCommand': 'PlayNow'}
21
22
23################# Looking up the metadata of each of those three items from the JF API #################
24################# This is all kodi (or other clients) have access to when trying to play items ##################
25{'Items': [{'Album': 'Remember When (Acoustic) (Single)',
26 'AlbumArtist': 'Bad Wolves',
27 'AlbumArtists': [{'Id': '0ba2bff3299bb6e7dfe2e7b0b99c333c',
28 'Name': 'Bad Wolves'}],
29 'AlbumId': 'ecd6cf4f1dda9ceddc692966da82d63a',
30 'ArtistItems': [{'Id': '0ba2bff3299bb6e7dfe2e7b0b99c333c',
31 'Name': 'Bad Wolves'}],
32 'Artists': ['Bad Wolves'],
33 'BackdropImageTags': [],
34 'DateCreated': '2019-06-22T00:06:43.0000000Z',
35 'Etag': '543b6ca4c9f21c87d81daf7a932499c0',
36 'GenreItems': [],
37 'Genres': [],
38 'Id': '656e10dc916933ff598a5b68babde709',
39 'ImageTags': {},
40 'IndexNumber': 1,
41 'IsFolder': False,
42 'LocalTrailerCount': 0,
43 'LocationType': 'FileSystem',
44 'MediaSources': [{'Bitrate': 65842,
45 'Container': 'm4a',
46 'DefaultAudioStreamIndex': 0,
47 'ETag': '200ebe1f42c41d8830f13e661167d368',
48 'Formats': [],
49 'GenPtsInput': False,
50 'Id': '656e10dc916933ff598a5b68babde709',
51 'IgnoreDts': False,
52 'IgnoreIndex': False,
53 'IsInfiniteStream': False,
54 'IsRemote': False,
55 'MediaStreams': [{'BitRate': 64000,
56 'ChannelLayout': 'stereo',
57 'Channels': 2,
58 'Codec': 'aac',
59 'CodecTag': 'mp4a',
60 'CodecTimeBase': '1/44100',
61 'DisplayTitle': 'Und AAC '
62 'stereo '
63 'Default',
64 'Index': 0,
65 'IsDefault': True,
66 'IsExternal': False,
67 'IsForced': False,
68 'IsInterlaced': False,
69 'IsTextSubtitleStream': False,
70 'Language': 'und',
71 'Level': 0,
72 'Profile': 'HE-AAC',
73 'SampleRate': 44100,
74 'SupportsExternalStream': False,
75 'TimeBase': '1/44100',
76 'Type': 'Audio'}],
77 'Name': 'Bad_Wolves-Remember_When_(Acoustic)',
78 'Path': '/mnt/Music/Bad_Wolves/Remember_When_(Acoustic)_(Single)/Bad_Wolves-Remember_When_(Acoustic).m4a',
79 'Protocol': 'File',
80 'ReadAtNativeFramerate': False,
81 'RequiredHttpHeaders': {},
82 'RequiresClosing': False,
83 'RequiresLooping': False,
84 'RequiresOpening': False,
85 'RunTimeTicks': 2099079936,
86 'Size': 1727617,
87 'SupportsDirectPlay': True,
88 'SupportsDirectStream': True,
89 'SupportsProbing': True,
90 'SupportsTranscoding': True,
91 'Type': 'Default'}],
92 'MediaType': 'Audio',
93 'Name': 'Remember When (Acoustic)',
94 'ParentBackdropImageTags': ['087e028c8f06f6e596eedbb1df301a3c'],
95 'ParentBackdropItemId': '0ba2bff3299bb6e7dfe2e7b0b99c333c',
96 'ParentId': 'ecd6cf4f1dda9ceddc692966da82d63a',
97 'ParentIndexNumber': 1,
98 'ParentLogoImageTag': 'cb486db8e14412ec62717388971e91b0',
99 'ParentLogoItemId': '0ba2bff3299bb6e7dfe2e7b0b99c333c',
100 'Path': '/mnt/Music/Bad_Wolves/Remember_When_(Acoustic)_(Single)/Bad_Wolves-Remember_When_(Acoustic).m4a',
101 'People': [],
102 'ProviderIds': {},
103 'RemoteTrailers': [],
104 'RunTimeTicks': 2099079936,
105 'ServerId': '0e23a5ed08c84a159ea7d7aea7ff5e67',
106 'SortName': '0001 - 0001 - Remember When (Acoustic)',
107 'Studios': [],
108 'Taglines': [],
109 'Tags': [],
110 'Type': 'Audio',
111 'UserData': {'IsFavorite': False,
112 'Key': 'Bad Wolves-Remember When (Acoustic) '
113 '(Single)-0001-0001Remember When (Acoustic)',
114 'LastPlayedDate': '2019-09-07T20:03:41.2507378Z',
115 'PlayCount': 2,
116 'PlaybackPositionTicks': 0,
117 'Played': True}},
118 {'Album': 'Alone In A Room (Acoustic Version) (Single) (Explicit)',
119 'AlbumArtist': 'Asking Alexandria',
120 'AlbumArtists': [{'Id': '638b82358fb3036a79a37a06f798dc67',
121 'Name': 'Asking Alexandria'}],
122 'AlbumId': '5c0748d2e349fa0967f65b6eb1d0e74d',
123 'ArtistItems': [{'Id': '638b82358fb3036a79a37a06f798dc67',
124 'Name': 'Asking Alexandria'}],
125 'Artists': ['Asking Alexandria'],
126 'BackdropImageTags': [],
127 'DateCreated': '2019-06-21T17:25:35.0000000Z',
128 'Etag': '543b6ca4c9f21c87d81daf7a932499c0',
129 'GenreItems': [],
130 'Genres': [],
131 'Id': 'df3e113a990a813a434e07c0f7e3d7fa',
132 'ImageTags': {},
133 'IndexNumber': 1,
134 'IsFolder': False,
135 'LocalTrailerCount': 0,
136 'LocationType': 'FileSystem',
137 'MediaSources': [{'Bitrate': 65564,
138 'Container': 'm4a',
139 'DefaultAudioStreamIndex': 0,
140 'ETag': '6f37299c89fffb1000aee74fe9ad84cf',
141 'Formats': [],
142 'GenPtsInput': False,
143 'Id': 'df3e113a990a813a434e07c0f7e3d7fa',
144 'IgnoreDts': False,
145 'IgnoreIndex': False,
146 'IsInfiniteStream': False,
147 'IsRemote': False,
148 'MediaStreams': [{'BitRate': 64000,
149 'ChannelLayout': 'stereo',
150 'Channels': 2,
151 'Codec': 'aac',
152 'CodecTag': 'mp4a',
153 'CodecTimeBase': '1/44100',
154 'DisplayTitle': 'Und AAC '
155 'stereo '
156 'Default',
157 'Index': 0,
158 'IsDefault': True,
159 'IsExternal': False,
160 'IsForced': False,
161 'IsInterlaced': False,
162 'IsTextSubtitleStream': False,
163 'Language': 'und',
164 'Level': 0,
165 'Profile': 'HE-AAC',
166 'SampleRate': 44100,
167 'SupportsExternalStream': False,
168 'TimeBase': '1/44100',
169 'Type': 'Audio'}],
170 'Name': 'Asking_Alexandria-Alone_In_A_Room_(Acoustic_Version)',
171 'Path': '/mnt/Music/Asking_Alexandria/Alone_In_A_Room_(Acoustic_Version)_(Single)_(Explicit)/Asking_Alexandria-Alone_In_A_Room_(Acoustic_Version).m4a',
172 'Protocol': 'File',
173 'ReadAtNativeFramerate': False,
174 'RequiredHttpHeaders': {},
175 'RequiresClosing': False,
176 'RequiresLooping': False,
177 'RequiresOpening': False,
178 'RunTimeTicks': 2657289984,
179 'Size': 2177809,
180 'SupportsDirectPlay': True,
181 'SupportsDirectStream': True,
182 'SupportsProbing': True,
183 'SupportsTranscoding': True,
184 'Type': 'Default'}],
185 'MediaType': 'Audio',
186 'Name': 'Alone In A Room (Acoustic Version)',
187 'ParentBackdropImageTags': ['6b0ac6fbe75f0395c420a25c7d152e7f'],
188 'ParentBackdropItemId': '638b82358fb3036a79a37a06f798dc67',
189 'ParentId': '5c0748d2e349fa0967f65b6eb1d0e74d',
190 'ParentIndexNumber': 1,
191 'ParentLogoImageTag': '91b8144183e12b946a02822d0e78684a',
192 'ParentLogoItemId': '638b82358fb3036a79a37a06f798dc67',
193 'Path': '/mnt/Music/Asking_Alexandria/Alone_In_A_Room_(Acoustic_Version)_(Single)_(Explicit)/Asking_Alexandria-Alone_In_A_Room_(Acoustic_Version).m4a',
194 'People': [],
195 'ProviderIds': {},
196 'RemoteTrailers': [],
197 'RunTimeTicks': 2657289984,
198 'ServerId': '0e23a5ed08c84a159ea7d7aea7ff5e67',
199 'SortName': '0001 - 0001 - Alone In A Room (Acoustic Version)',
200 'Studios': [],
201 'Taglines': [],
202 'Tags': [],
203 'Type': 'Audio',
204 'UserData': {'IsFavorite': False,
205 'Key': 'Asking Alexandria-Alone In A Room (Acoustic '
206 'Version) (Single) (Explicit)-0001-0001Alone '
207 'In A Room (Acoustic Version)',
208 'PlayCount': 0,
209 'PlaybackPositionTicks': 0,
210 'Played': False}},
211 {'Album': 'Feeding The Wolves (Deluxe Edition)',
212 'AlbumArtist': '10 Years',
213 'AlbumArtists': [{'Id': 'f9126b85c1f7469aa21169606233add2',
214 'Name': '10 Years'}],
215 'AlbumId': 'e8b97ef081b9bca9f7e442b361c716c8',
216 'ArtistItems': [{'Id': 'f9126b85c1f7469aa21169606233add2',
217 'Name': '10 Years'}],
218 'Artists': ['10 Years'],
219 'BackdropImageTags': [],
220 'DateCreated': '2018-08-01T13:50:08.0000000Z',
221 'Etag': '543b6ca4c9f21c87d81daf7a932499c0',
222 'GenreItems': [],
223 'Genres': [],
224 'Id': 'ee80cac1f69a72999f96b502c5be9639',
225 'ImageTags': {},
226 'IndexNumber': 13,
227 'IsFolder': False,
228 'LocalTrailerCount': 0,
229 'LocationType': 'FileSystem',
230 'MediaSources': [{'Bitrate': 67245,
231 'Container': 'm4a',
232 'DefaultAudioStreamIndex': 0,
233 'ETag': '53b5a31d331dd2330740cd45f05ab47e',
234 'Formats': [],
235 'GenPtsInput': False,
236 'Id': 'ee80cac1f69a72999f96b502c5be9639',
237 'IgnoreDts': False,
238 'IgnoreIndex': False,
239 'IsInfiniteStream': False,
240 'IsRemote': False,
241 'MediaStreams': [{'BitRate': 64000,
242 'ChannelLayout': 'stereo',
243 'Channels': 2,
244 'Codec': 'aac',
245 'CodecTag': 'mp4a',
246 'CodecTimeBase': '1/44100',
247 'DisplayTitle': 'Und AAC '
248 'stereo '
249 'Default',
250 'Index': 0,
251 'IsDefault': True,
252 'IsExternal': False,
253 'IsForced': False,
254 'IsInterlaced': False,
255 'IsTextSubtitleStream': False,
256 'Language': 'und',
257 'Level': 0,
258 'Profile': 'HE-AAC',
259 'SampleRate': 44100,
260 'SupportsExternalStream': False,
261 'TimeBase': '1/44100',
262 'Type': 'Audio'}],
263 'Name': '10_Years-Fix_Me_(Acoustic)',
264 'Path': '/mnt/Music/10_Years/Feeding_The_Wolves_(Deluxe_Edition)/10_Years-Fix_Me_(Acoustic).m4a',
265 'Protocol': 'File',
266 'ReadAtNativeFramerate': False,
267 'RequiredHttpHeaders': {},
268 'RequiresClosing': False,
269 'RequiresLooping': False,
270 'RequiresOpening': False,
271 'RunTimeTicks': 2113939968,
272 'Size': 1776913,
273 'SupportsDirectPlay': True,
274 'SupportsDirectStream': True,
275 'SupportsProbing': True,
276 'SupportsTranscoding': True,
277 'Type': 'Default'}],
278 'MediaType': 'Audio',
279 'Name': 'Fix Me (Acoustic)',
280 'ParentBackdropImageTags': ['a99bb49898c99f8db31b696cced70f97'],
281 'ParentBackdropItemId': 'f9126b85c1f7469aa21169606233add2',
282 'ParentId': 'e8b97ef081b9bca9f7e442b361c716c8',
283 'ParentIndexNumber': 1,
284 'ParentLogoImageTag': '33ed8d75d1bd16d8c2b97e802813d547',
285 'ParentLogoItemId': 'f9126b85c1f7469aa21169606233add2',
286 'Path': '/mnt/Music/10_Years/Feeding_The_Wolves_(Deluxe_Edition)/10_Years-Fix_Me_(Acoustic).m4a',
287 'People': [],
288 'ProviderIds': {},
289 'RemoteTrailers': [],
290 'RunTimeTicks': 2113939968,
291 'ServerId': '0e23a5ed08c84a159ea7d7aea7ff5e67',
292 'SortName': '0001 - 0013 - Fix Me (Acoustic)',
293 'Studios': [],
294 'Taglines': [],
295 'Tags': [],
296 'Type': 'Audio',
297 'UserData': {'IsFavorite': False,
298 'Key': '10 Years-Feeding The Wolves (Deluxe '
299 'Edition)-0001-0013Fix Me (Acoustic)',
300 'PlayCount': 0,
301 'PlaybackPositionTicks': 0,
302 'Played': False}}],
303 'TotalRecordCount': 3}