mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Fix update music
This commit is contained in:
parent
18c493909d
commit
50c71c70d4
2 changed files with 8 additions and 2 deletions
|
@ -1882,6 +1882,8 @@ class Music(Items):
|
||||||
|
|
||||||
def added(self, items, pdialog):
|
def added(self, items, pdialog):
|
||||||
|
|
||||||
|
total = len(items)
|
||||||
|
count = 0
|
||||||
for artist in items:
|
for artist in items:
|
||||||
|
|
||||||
title = artist['Name']
|
title = artist['Name']
|
||||||
|
@ -1896,6 +1898,8 @@ class Music(Items):
|
||||||
|
|
||||||
def added_album(self, items, pdialog):
|
def added_album(self, items, pdialog):
|
||||||
|
|
||||||
|
total = len(items)
|
||||||
|
count = 0
|
||||||
for album in items:
|
for album in items:
|
||||||
|
|
||||||
title = album['Name']
|
title = album['Name']
|
||||||
|
@ -1910,6 +1914,8 @@ class Music(Items):
|
||||||
|
|
||||||
def added_song(self, items, pdialog):
|
def added_song(self, items, pdialog):
|
||||||
|
|
||||||
|
total = len(items)
|
||||||
|
count = 0
|
||||||
for song in items:
|
for song in items:
|
||||||
|
|
||||||
title = song['Name']
|
title = song['Name']
|
||||||
|
|
|
@ -81,7 +81,7 @@ class Read_EmbyServer():
|
||||||
"CommunityRating,OfficialRating,CumulativeRunTimeTicks,"
|
"CommunityRating,OfficialRating,CumulativeRunTimeTicks,"
|
||||||
"Metascore,AirTime,DateCreated,MediaStreams,People,Overview,"
|
"Metascore,AirTime,DateCreated,MediaStreams,People,Overview,"
|
||||||
"CriticRating,CriticRatingSummary,Etag,ProductionLocations,"
|
"CriticRating,CriticRatingSummary,Etag,ProductionLocations,"
|
||||||
"OfficialRating,Tags,ProviderIds,RemoteTrailers"
|
"Tags,ProviderIds,RemoteTrailers"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
result = self.doUtils.downloadUrl(url, parameters=params)
|
result = self.doUtils.downloadUrl(url, parameters=params)
|
||||||
|
@ -182,7 +182,7 @@ class Read_EmbyServer():
|
||||||
"CommunityRating,OfficialRating,CumulativeRunTimeTicks,"
|
"CommunityRating,OfficialRating,CumulativeRunTimeTicks,"
|
||||||
"Metascore,AirTime,DateCreated,MediaStreams,People,Overview,"
|
"Metascore,AirTime,DateCreated,MediaStreams,People,Overview,"
|
||||||
"CriticRating,CriticRatingSummary,Etag,ShortOverview,ProductionLocations,"
|
"CriticRating,CriticRatingSummary,Etag,ShortOverview,ProductionLocations,"
|
||||||
"OfficialRating,Tags,ProviderIds,ParentId,RemoteTrailers"
|
"Tags,ProviderIds,ParentId,RemoteTrailers"
|
||||||
)
|
)
|
||||||
result = doUtils.downloadUrl(url, parameters=params)
|
result = doUtils.downloadUrl(url, parameters=params)
|
||||||
items['Items'].extend(result['Items'])
|
items['Items'].extend(result['Items'])
|
||||||
|
|
Loading…
Reference in a new issue