mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +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,6 +2030,11 @@ class Music(Items):
|
|||
##### GET THE FILE AND PATH #####
|
||||
if self.directstream:
|
||||
path = "%s/emby/Audio/%s/" % (self.server, itemid)
|
||||
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:
|
||||
playurl = API.get_file_path()
|
||||
|
|
Loading…
Reference in a new issue