mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Set premiere date
This commit is contained in:
parent
06570ad950
commit
d67affc459
3 changed files with 5 additions and 3 deletions
|
@ -291,7 +291,7 @@ VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|||
add_movie_obj = ["{MovieId}", "{FileId}", "{Title}", "{Plot}", "{ShortPlot}", "{Tagline}",
|
||||
"{Votes}", "{RatingId}", "{Writers}", "{Year}", "{Unique}", "{SortTitle}",
|
||||
"{Runtime}", "{Mpaa}", "{Genre}", "{Directors}", "{Title}", "{Studio}",
|
||||
"{Trailer}", "{Country}", "{Year}"]
|
||||
"{Trailer}", "{Country}", "{Premiere}"]
|
||||
add_rating = """
|
||||
INSERT INTO rating(rating_id, media_id, media_type, rating_type, rating, votes)
|
||||
VALUES (?, ?, ?, ?, ?, ?)
|
||||
|
@ -405,7 +405,7 @@ WHERE idMovie = ?
|
|||
update_movie_obj = ["{Title}", "{Plot}", "{ShortPlot}", "{Tagline}", "{Votes}", "{RatingId}",
|
||||
"{Writers}", "{Year}", "{Unique}", "{SortTitle}", "{Runtime}",
|
||||
"{Mpaa}", "{Genre}", "{Directors}", "{Title}", "{Studio}", "{Trailer}",
|
||||
"{Country}", "{Year}", "{MovieId}"]
|
||||
"{Country}", "{Premiere}", "{MovieId}"]
|
||||
update_rating = """
|
||||
UPDATE rating
|
||||
SET media_id = ?, media_type = ?, rating_type = ?, rating = ?, votes = ?
|
||||
|
|
|
@ -94,6 +94,7 @@ class Movies(KodiDb):
|
|||
obj['Video'] = API.video_streams(obj['Video'] or [], obj['Container'])
|
||||
obj['Audio'] = API.audio_streams(obj['Audio'] or [])
|
||||
obj['Streams'] = API.media_streams(obj['Video'], obj['Audio'], obj['Subtitles'])
|
||||
obj['Premiere'] = Local(obj['Premiere']).split('.')[0].replace('T', " ") or obj['Year']
|
||||
|
||||
self.get_path_filename(obj)
|
||||
self.trailer(obj)
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
"UniqueId": "ProviderIds/Imdb",
|
||||
"Rating": "CommunityRating",
|
||||
"Year": "ProductionYear",
|
||||
"Premiere": "PremiereDate",
|
||||
"Votes": "VoteCount",
|
||||
"Plot": "Overview",
|
||||
"ShortPlot": "ShortOverview",
|
||||
|
@ -359,4 +360,4 @@
|
|||
"rating": "CommunityRating",
|
||||
"firstaired": "ProductionYear"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue