2023-11-21, 21:27
I think tvdb has an average runtime for episodes in the TV show info which might be used before the file has its metadata scanned to determine the actual runtime.
(2023-11-21, 12:57)Andrea1998 Wrote: I wonder if this updated Python scraper doesn't recover the duration of individual episodes, or if it does and so it's just my problem.Make sure you using the most current version (1.6.5). The scraper will load the duration from TMDb if available, I just can't remember exactly when I added it. Kodi core will override what is downloaded if the scan of the actual video file returns a length, but I use the scraper all the time to have episode lengths for stream files. You should check to make sure the episode length is actually in TMDb. If you still aren't getting the duration after all that, I'll probably need to see a log file with Kodi debugging enabled.
(I tested this function on several devices, in none it manages to recover the duration of the episodes, if I change scraper and use tvdb v.4 (tvdb.com) it easily recovers the duration of the episodes).
(2023-11-21, 23:04)pkscout Wrote: Make sure you using the most current version (1.6.5). The scraper will load the duration from TMDb if available, I just can't remember exactly when I added it. Kodi core will override what is downloaded if the scan of the actual video file returns a length, but I use the scraper all the time to have episode lengths for stream files. You should check to make sure the episode length is actually in TMDb. If you still aren't getting the duration after all that, I'll probably need to see a log file with Kodi debugging enabled.Yes, I had already seen if it was the latest version installed, I installed it directly from the official Kodi repo.
(2023-11-22, 15:34)Andrea1998 Wrote:You have so many things going on here that there is no way to tell what might be causing your problem. You have two different scrapers that you're bouncing between and you have NFO files that would override anything the scraper is doing anyway. You need to pick one scraper and method and stick with it for a given source. If you want to use TVDB, fine, use it. You want to do NFO files? Fine, do them. But having NFO files and two different scrapers doing the same source is going to give unpredictable results. At this point I'd recommend removing the source to clean the database out and then readding that source picking ONE way to do the scrapes.(2023-11-21, 23:04)pkscout Wrote: Make sure you using the most current version (1.6.5). The scraper will load the duration from TMDb if available, I just can't remember exactly when I added it. Kodi core will override what is downloaded if the scan of the actual video file returns a length, but I use the scraper all the time to have episode lengths for stream files. You should check to make sure the episode length is actually in TMDb. If you still aren't getting the duration after all that, I'll probably need to see a log file with Kodi debugging enabled.I'm not very good at LOG, so I rely on expert people to understand where the problem could be.
If necessary, I also created a more detailed log, enabling the "Detailed Debug LOG" option in the TMDb tv shows addon settings, generating a file of 140,000 lines of code, while the standard one is only 30,000.
The log file is larger than 2 mb and I can't upload it to paste.kodi.tv, so it's available here: https://www.mediafire.com/file/z8ynu6bzf...i.log/file
Thank you very much for any of your help.
(2023-11-22, 15:44)pkscout Wrote: You have so many things going on here that there is no way to tell what might be causing your problem. You have two different scrapers that you're bouncing between and you have NFO files that would override anything the scraper is doing anyway. You need to pick one scraper and method and stick with it for a given source. If you want to use TVDB, fine, use it. You want to do NFO files? Fine, do them. But having NFO files and two different scrapers doing the same source is going to give unpredictable results. At this point I'd recommend removing the source to clean the database out and then readding that source picking ONE way to do the scrapes.
(2023-11-22, 15:56)Andrea1998 Wrote:No, two scrapers don't work at the same time, but switching between them can cause hassles, and given you were bouncing back and forth during your test, it was hard to see what might have been causing the problems.(2023-11-22, 15:44)pkscout Wrote: You have so many things going on here that there is no way to tell what might be causing your problem. You have two different scrapers that you're bouncing between and you have NFO files that would override anything the scraper is doing anyway. You need to pick one scraper and method and stick with it for a given source. If you want to use TVDB, fine, use it. You want to do NFO files? Fine, do them. But having NFO files and two different scrapers doing the same source is going to give unpredictable results. At this point I'd recommend removing the source to clean the database out and then readding that source picking ONE way to do the scrapes.
ok, forgive me I struggle to understand, do I really have 2 scrapers together that retrieve information?
I had them installed, "tvdb.com" and "tmdb python" but it is always only one selected. Now I left only tmdb python and uninstalled the others.
No, I would just like to use the scraper: TMDb TV shows.
TVDb was used for testing only.
No, I wouldn't want them to overwrite anything, what can I do about it?
(2023-11-25, 13:51)pkscout Wrote: No, two scrapers don't work at the same time, but switching between them can cause hassles, and given you were bouncing back and forth during your test, it was hard to see what might have been causing the problems.
(2023-12-04, 16:16)Andrea1998 Wrote: TMDH helper jurialmunkeyThis is not a scraper. Why are you installing this?
(2023-12-04, 21:12)Karellen Wrote: This is not a scraper. Why are you installing this?Because it's the only addon that I can't do without, if it depends on it I'll have to keep the problem, but I don't think this addon is the cause.
(2023-12-05, 15:19)Hitcher Wrote: Play one and see if the runtime changes to the correct length.When I start any episode to play, the duration shows correctly in "Player.Duration()". The problem is that it doesn't show anything at all about the episode duration in "ListItem.Duration" (off playback, before starting the episode). if you also kindly add this TV series (She-Hulk: Attorney at Law), in the detailed Kodi log file, do you have the same results as me or are there additional entries, including the duration of each episode?
(2023-12-07, 16:53)Andrea1998 Wrote: @pkscout based on what you told me, it crucial that "NFO files overwrite any information retrieved by the scraper", making the use of the scraper practically useless.You can't. If you use NFO files, then you are stuck with what they provide. I have no idea what addon there is that creates and requires NFO files, but as long as you use it and generate NFO files, that's the data you have. NFO files override the scraper by design at the core of Kodi. That's unlikely to change.
I can't help but create the NFO files because they are needed for this addon, so my question now is, can I somehow add or overwrite the information retrieved by the scraper to the NFO files, or bypass it somehow?
(or a method to ensure that the information is not taken from the NFO files (ignores them) and instead takes it from the scraper? )
(2023-12-08, 00:23)pkscout Wrote: You can't. If you use NFO files, then you are stuck with what they provide. I have no idea what addon there is that creates and requires NFO files, but as long as you use it and generate NFO files, that's the data you have. NFO files override the scraper by design at the core of Kodi. That's unlikely to change.Thanks for your help, I will proceed as you told me.
Your only choice is to go to the dev for that addon and ask them to add the duration.
(2023-12-08, 00:23)pkscout Wrote: (...) I have no idea what addon there is that creates and requires NFO files (...)