CastagnaIT / plugin.video.netflix

InputStream based Netflix plugin for Kodi
MIT License
1.91k stars 260 forks source link

Adding clearart and year to generated nfo #1212

Closed notoco closed 1 year ago

notoco commented 3 years ago

Feature request

I'm submitting a proposal to ...

Describe your request

When adding a series or movie to the library, clearart / clearlogo information is not created in the nfo file - which is clearly visible, for example, in Netflix-My List. Not all series / episodes are scrapable by other scrapers - so I use NFO files

Describe the use case

With cleart form netflix plugin: screenshot00000

From library without clearart: screenshot00001

And nfo file for this tvshow (generated by plugin):

<?xml version='1.0' encoding='UTF-8'?><tvshow><mpaa>7+</mpaa><plot>Wybierz się w podróż po animowanym świecie Skylanderów i śledź poczynania grupki absolwentów Akademii, którzy muszą znaleźć w sobie odwagę, by stawić czoła złu.</plot><id>80113201</id><showtitle>Akademia Skylanders</showtitle><title>Akademia Skylanders</title><thumb aspect="poster">https://occ-0-1432-1433.1.nflxso.net/dnm/api/v6/evlCitJPPCVCry0BZlEFb5-QjKc/AAAABdokhQV5X37tD2fkK9EQi6tXMo4HOuGDfNruz_0Alpy9k0L_0bmQndB-xwD8AM1VvQsZFA-pPyRTSaUuwIJAOZrnjMAqm-jZOhqdqjr7ZR8kXxYgY0J0qgIQ9DOsrg.jpg?r=fe7</thumb><thumb aspect="poster">https://occ-0-1432-1433.1.nflxso.net/dnm/api/v6/evlCitJPPCVCry0BZlEFb5-QjKc/AAAABQ7fqfA5eyXIRmmz8oXhvgOQhl86lJTlLnMd5JlhkpiWvihAUuDq-iF0lio6-PlW2AA8z_acCZ83p5NNXmeyEURcwq99wq81uTMOpoiNntcxiD6QSDM9Dp4V5tMWRg.jpg?r=fe7</thumb><fanart><thumb>https://occ-0-1432-1433.1.nflxso.net/dnm/api/v6/E8vDc_W8CLv7-yMQu8KMEC7Rrr8/AAAABS1E-cLIwyXMXrAv6D6gV8wKbrHWA6np5d26N2aXRDY7W4E7jvSQwtKYsJqzO6yNR1Zip4F2obcLHdX6qLDtlD7LsXtl.jpg?r=4e8</thumb></fanart><fanart><thumb>https://occ-0-1432-1433.1.nflxso.net/dnm/api/v6/E8vDc_W8CLv7-yMQu8KMEC7Rrr8/AAAABSknfmov1D6lVdaOomRhOv3rLZcLouYLNS7gS1LB6WHz7uRDDQwyui76KPBu6Zyasndk83gmHNgn6FHCl2a7vMoMzL-_.jpg?r=4e8</thumb></fanart></tvshow>

Describe an alternative

Development tips

Additional details or screenshots (if appropriate)

Specific details

Screenshots

notoco commented 3 years ago

And maybe add information about the year of production? Because it is currently empty and the kodi stubbornly shows 1969, not 2018

CastagnaIT commented 3 years ago

the nfo data are based on netflix metadata only, there are limited info, are not the same data as the directories (like MyList) clearart not exists on metadata

for the "year" is not specified at "show" level data, but maybe i could read the year from the first season ATM not remember how works all NFO code i will need to check

notoco commented 3 years ago

Then you made me sad, my friend. As a penalty, I will finally complete the Polish translation.

CastagnaIT commented 3 years ago

please do a test (for year case) plugin.video.netflix_1.17.0+matrix.1_20210814.zip

notoco commented 3 years ago

Theoretically it works. Not at all views, but it's my skin's fault - I have to bury a little in it.

notoco commented 3 years ago

Wait! reading this: https://kodi.wiki/view/NFO_files/TV_shows It's better to use premiered instead year - but it's still shows me 1969... LOL... Nevermind - there's something wrong with kodi and reading nfo files

CastagnaIT commented 3 years ago

i think the problem is the date format we have only the year value not the full date

from your link

Format as 2019-01-31

and also:

Release Year. Do not use. Use \<premiered> instead

i do not know when this change is happened i do not know if can be solved in some way if you have time try investigate

CastagnaIT commented 1 year ago

i tried investigate better, the <year> tag seem has been ~deprecated in Kodi v18 and removed on v19~ so IMO the best thing that we can do is replace it with <premiered> and hardcode month/day. by testing on Kodi 20 appears to works correctly, and in the info screen dialog the year along the title appears correctly will be fix for next release

EDIT: found an old PR and "year" is not deprecated nor removed but still works but seem slight differently, and i am not able to understand why the value is not displayed in the information screen, also kodi wiki documentation its not so clear. For your skin i think you have to check what value is read kodi skin use ListItem.Year only