mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Support other music extension for direct stream
This commit is contained in:
parent
e7c1d4d623
commit
23b52de9be
1 changed files with 6 additions and 1 deletions
|
@ -2030,7 +2030,12 @@ class Music(Items):
|
||||||
##### GET THE FILE AND PATH #####
|
##### GET THE FILE AND PATH #####
|
||||||
if self.directstream:
|
if self.directstream:
|
||||||
path = "%s/emby/Audio/%s/" % (self.server, itemid)
|
path = "%s/emby/Audio/%s/" % (self.server, itemid)
|
||||||
filename = "stream.mp3?static=true"
|
extensions = ['mp3', 'aac', 'ogg', 'oga', 'webma', 'wma', 'flac']
|
||||||
|
|
||||||
|
if item['Container'].lower() in extensions:
|
||||||
|
filename = "stream.%s?static=true" % item['Container']
|
||||||
|
else:
|
||||||
|
filename = "stream.mp3?static=true"
|
||||||
else:
|
else:
|
||||||
playurl = API.get_file_path()
|
playurl = API.get_file_path()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue