mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Don't store CriticRating in the userrating db field
This commit is contained in:
parent
2a8b06a911
commit
833f72ff5d
3 changed files with 5 additions and 6 deletions
|
@ -26,7 +26,7 @@ def info():
|
||||||
"Path,Genres,SortName,Studios,Writer,Taglines,LocalTrailerCount,"
|
"Path,Genres,SortName,Studios,Writer,Taglines,LocalTrailerCount,"
|
||||||
"OfficialRating,CumulativeRunTimeTicks,ItemCounts,"
|
"OfficialRating,CumulativeRunTimeTicks,ItemCounts,"
|
||||||
"Metascore,AirTime,DateCreated,People,Overview,"
|
"Metascore,AirTime,DateCreated,People,Overview,"
|
||||||
"CriticRating,CriticRatingSummary,Etag,ShortOverview,ProductionLocations,"
|
"Etag,ShortOverview,ProductionLocations,"
|
||||||
"Tags,ProviderIds,ParentId,RemoteTrailers,SpecialEpisodeNumbers,"
|
"Tags,ProviderIds,ParentId,RemoteTrailers,SpecialEpisodeNumbers,"
|
||||||
"MediaSources,VoteCount,RecursiveItemCount,PrimaryImageAspectRatio"
|
"MediaSources,VoteCount,RecursiveItemCount,PrimaryImageAspectRatio"
|
||||||
)
|
)
|
||||||
|
|
|
@ -419,7 +419,6 @@ class Actions(object):
|
||||||
'imdbnumber': obj['UniqueId'],
|
'imdbnumber': obj['UniqueId'],
|
||||||
'lastplayed': obj['DatePlayed'],
|
'lastplayed': obj['DatePlayed'],
|
||||||
'duration': obj['Runtime'],
|
'duration': obj['Runtime'],
|
||||||
'userrating': obj['CriticRating']
|
|
||||||
})
|
})
|
||||||
|
|
||||||
elif obj['Type'] == 'MusicVideo':
|
elif obj['Type'] == 'MusicVideo':
|
||||||
|
|
|
@ -285,13 +285,13 @@ VALUES (?, ?, ?, ?)
|
||||||
"""
|
"""
|
||||||
add_movie = """
|
add_movie = """
|
||||||
INSERT INTO movie(idMovie, idFile, c00, c01, c02, c03, c04, c05, c06, c07,
|
INSERT INTO movie(idMovie, idFile, c00, c01, c02, c03, c04, c05, c06, c07,
|
||||||
c09, c10, c11, c12, c14, c15, c16, c18, c19, c21, userrating, premiered)
|
c09, c10, c11, c12, c14, c15, c16, c18, c19, c21, premiered)
|
||||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
||||||
"""
|
"""
|
||||||
add_movie_obj = ["{MovieId}", "{FileId}", "{Title}", "{Plot}", "{ShortPlot}", "{Tagline}",
|
add_movie_obj = ["{MovieId}", "{FileId}", "{Title}", "{Plot}", "{ShortPlot}", "{Tagline}",
|
||||||
"{Votes}", "{RatingId}", "{Writers}", "{Year}", "{Unique}", "{SortTitle}",
|
"{Votes}", "{RatingId}", "{Writers}", "{Year}", "{Unique}", "{SortTitle}",
|
||||||
"{Runtime}", "{Mpaa}", "{Genre}", "{Directors}", "{Title}", "{Studio}",
|
"{Runtime}", "{Mpaa}", "{Genre}", "{Directors}", "{Title}", "{Studio}",
|
||||||
"{Trailer}", "{Country}", "{CriticRating}", "{Year}"]
|
"{Trailer}", "{Country}", "{Year}"]
|
||||||
add_rating = """
|
add_rating = """
|
||||||
INSERT INTO rating(rating_id, media_id, media_type, rating_type, rating, votes)
|
INSERT INTO rating(rating_id, media_id, media_type, rating_type, rating, votes)
|
||||||
VALUES (?, ?, ?, ?, ?, ?)
|
VALUES (?, ?, ?, ?, ?, ?)
|
||||||
|
@ -399,13 +399,13 @@ update_movie = """
|
||||||
UPDATE movie
|
UPDATE movie
|
||||||
SET c00 = ?, c01 = ?, c02 = ?, c03 = ?, c04 = ?, c05 = ?, c06 = ?,
|
SET c00 = ?, c01 = ?, c02 = ?, c03 = ?, c04 = ?, c05 = ?, c06 = ?,
|
||||||
c07 = ?, c09 = ?, c10 = ?, c11 = ?, c12 = ?, c14 = ?, c15 = ?,
|
c07 = ?, c09 = ?, c10 = ?, c11 = ?, c12 = ?, c14 = ?, c15 = ?,
|
||||||
c16 = ?, c18 = ?, c19 = ?, c21 = ?, userrating = ?, premiered = ?
|
c16 = ?, c18 = ?, c19 = ?, c21 = ?, premiered = ?
|
||||||
WHERE idMovie = ?
|
WHERE idMovie = ?
|
||||||
"""
|
"""
|
||||||
update_movie_obj = ["{Title}", "{Plot}", "{ShortPlot}", "{Tagline}", "{Votes}", "{RatingId}",
|
update_movie_obj = ["{Title}", "{Plot}", "{ShortPlot}", "{Tagline}", "{Votes}", "{RatingId}",
|
||||||
"{Writers}", "{Year}", "{Unique}", "{SortTitle}", "{Runtime}",
|
"{Writers}", "{Year}", "{Unique}", "{SortTitle}", "{Runtime}",
|
||||||
"{Mpaa}", "{Genre}", "{Directors}", "{Title}", "{Studio}", "{Trailer}",
|
"{Mpaa}", "{Genre}", "{Directors}", "{Title}", "{Studio}", "{Trailer}",
|
||||||
"{Country}", "{CriticRating}", "{Year}", "{MovieId}"]
|
"{Country}", "{Year}", "{MovieId}"]
|
||||||
update_rating = """
|
update_rating = """
|
||||||
UPDATE rating
|
UPDATE rating
|
||||||
SET media_id = ?, media_type = ?, rating_type = ?, rating = ?, votes = ?
|
SET media_id = ?, media_type = ?, rating_type = ?, rating = ?, votes = ?
|
||||||
|
|
Loading…
Reference in a new issue