mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Merge pull request #687 from oddstr13/pr-movie-premiere-1
Properly apply Movie premiered date
This commit is contained in:
commit
3e7f1ffcca
4 changed files with 9 additions and 3 deletions
|
@ -26,3 +26,6 @@ indent_size = 2
|
||||||
|
|
||||||
[resources/settings.xml]
|
[resources/settings.xml]
|
||||||
indent_style = tab
|
indent_style = tab
|
||||||
|
|
||||||
|
[jellyfin_kodi/objects/obj_map.json]
|
||||||
|
indent_style = tab
|
||||||
|
|
|
@ -291,7 +291,7 @@ 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}", "{Year}"]
|
"{Trailer}", "{Country}", "{Premiere}"]
|
||||||
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 (?, ?, ?, ?, ?, ?)
|
||||||
|
@ -405,7 +405,7 @@ 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}", "{Year}", "{MovieId}"]
|
"{Country}", "{Premiere}", "{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 = ?
|
||||||
|
|
|
@ -94,6 +94,8 @@ class Movies(KodiDb):
|
||||||
obj['Video'] = API.video_streams(obj['Video'] or [], obj['Container'])
|
obj['Video'] = API.video_streams(obj['Video'] or [], obj['Container'])
|
||||||
obj['Audio'] = API.audio_streams(obj['Audio'] or [])
|
obj['Audio'] = API.audio_streams(obj['Audio'] or [])
|
||||||
obj['Streams'] = API.media_streams(obj['Video'], obj['Audio'], obj['Subtitles'])
|
obj['Streams'] = API.media_streams(obj['Video'], obj['Audio'], obj['Subtitles'])
|
||||||
|
if obj['Premiere'] is not None:
|
||||||
|
obj['Premiere'] = obj['Premiere'].split('T')[0]
|
||||||
|
|
||||||
self.get_path_filename(obj)
|
self.get_path_filename(obj)
|
||||||
self.trailer(obj)
|
self.trailer(obj)
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
"UniqueId": "ProviderIds/Imdb",
|
"UniqueId": "ProviderIds/Imdb",
|
||||||
"Rating": "CommunityRating",
|
"Rating": "CommunityRating",
|
||||||
"Year": "ProductionYear",
|
"Year": "ProductionYear",
|
||||||
|
"Premiere": "PremiereDate,ProductionYear",
|
||||||
"Votes": "VoteCount",
|
"Votes": "VoteCount",
|
||||||
"Plot": "Overview",
|
"Plot": "Overview",
|
||||||
"ShortPlot": "ShortOverview",
|
"ShortPlot": "ShortOverview",
|
||||||
|
|
Loading…
Reference in a new issue