ankenyr / jellyfin-youtube-metadata-plugin

Youtube Metadata Plugin for Jellyfin
GNU Affero General Public License v3.0
481 stars 31 forks source link

Plugin seems to break Jellyfins Scan Media Library #83

Closed Gaffers2277 closed 1 year ago

Gaffers2277 commented 1 year ago

I installed the plugin but when i scan the media libraries it takes forever. It has been stuck on 34.4% for hours now. I uninstalled the plugin but it hasn't fixed the problem.

Mhowser commented 1 year ago

can you provide a jellyfin server log?

Gaffers2277 commented 1 year ago

can you provide a jellyfin server log?

Well as it's been a month since i posted this issue. No i nuked the Jellyfin Server after i couldn't uninstall the plugin and even after deleting the plugin from the server folders it still seemed to cause the scan to take hours rather then minutes. I'm planning on setting up a testing server but haven't had time yet.

ankenyr commented 1 year ago

It is probably not actually stuck. Watch the logs. When I do a full scan it sticks at generally 85%. If your library is large enough it can take a considerable amount of time to go through everything, it is downloading the files all from youtube and using web scraping rather than an API. Next time it is stuck look at the logs and see if is currently printing out things that look like

[14:41:21] [DBG] [127] MediaBrowser.Providers.TV.EpisodeMetadataService: Running YoutubeLocalEpisodeProvider for /data/youtube/DangerouslyFunny/2021/DangerouslyFunny - 20210909 - I_Created_The_Largest_Army_In_The_Universe/DangerouslyFunny - 20210909 - I_Created_The_Largest_Army_In_The_Universe [CCjnlGu2CcA].mkv
[14:41:21] [DBG] [127] Jellyfin.Plugin.YoutubeMetadata.Providers.YoutubeLocalEpisodeProvider: YTLocal GetMetadata: /data/youtube/DangerouslyFunny/2021/DangerouslyFunny - 20210909 - I_Created_The_Largest_Army_In_The_Universe/DangerouslyFunny - 20210909 - I_Created_The_Largest_Army_In_The_Universe [CCjnlGu2CcA].mkv
[14:41:21] [DBG] [127] MediaBrowser.Providers.TV.EpisodeMetadataService: YoutubeLocalEpisodeProvider returned no metadata for /data/youtube/DangerouslyFunny/2021/DangerouslyFunny - 20210909 - I_Created_The_Largest_Army_In_The_Universe/DangerouslyFunny - 20210909 - I_Created_The_Largest_Army_In_The_Universe [CCjnlGu2CcA].mkv
[14:41:21] [DBG] [127] MediaBrowser.Providers.TV.EpisodeMetadataService: Running EpisodeNfoProvider for /data/youtube/DangerouslyFunny/2021/DangerouslyFunny - 20210909 - I_Created_The_Largest_Army_In_The_Universe/DangerouslyFunny - 20210909 - I_Created_The_Largest_Army_In_The_Universe [CCjnlGu2CcA].mkv
[14:41:21] [DBG] [127] MediaBrowser.Providers.TV.EpisodeMetadataService: EpisodeNfoProvider returned no metadata for /data/youtube/DangerouslyFunny/2021/DangerouslyFunny - 20210909 - I_Created_The_Largest_Army_In_The_Universe/DangerouslyFunny - 20210909 - I_Created_The_Largest_Army_In_The_Universe [CCjnlGu2CcA].mkv
[14:41:21] [DBG] [127] Jellyfin.Plugin.YoutubeMetadata.Providers.YoutubeLocalImageProvider: YTLocalImage GetImages: I Bought The Ultimate Sword And Used It To Fight Everything in Who Needs A Hero?
[14:41:21] [DBG] [127] Jellyfin.Plugin.YoutubeMetadata.Providers.YoutubeLocalImageProvider: YTLocalImage GetSeriesInfo: /data/youtube/DangerouslyFunny/2021/DangerouslyFunny - 20210212 - I_Bought_The_Ultimate_Sword_And_Used_It_To_Fight_Everything_in_Who_Needs_A_Hero
[14:41:21] [DBG] [127] Jellyfin.Plugin.YoutubeMetadata.Providers.YoutubeLocalImageProvider: YTLocalImage GetSeriesInfo Result: /data/youtube/DangerouslyFunny/2021/DangerouslyFunny - 20210212 - I_Bought_The_Ultimate_Sword_And_Used_It_To_Fight_Everything_in_Who_Needs_A_Hero/DangerouslyFunny - 20210212 - I_Bought_The_Ultimate_Sword_And_Used_It_To_Fight_Everything_in_Who_Needs_A_Hero [7PZk3ZwOAYY].webp
[14:41:21] [DBG] [127] Jellyfin.Plugin.YoutubeMetadata.Providers.YoutubeLocalEpisodeProvider: YTLocal HasChanged: I Bought The Ultimate Sword And Used It To Fight Everything in Who Needs A Hero?
[14:41:21] [DBG] [127] Jellyfin.Plugin.YoutubeMetadata.Providers.YoutubeLocalEpisodeProvider: YTLocal GetInfoJson: /data/youtube/DangerouslyFunny/2021/DangerouslyFunny - 20210212 - I_Bought_The_Ultimate_Sword_And_Used_It_To_Fight_Everything_in_Who_Needs_A_Hero/DangerouslyFunny - 20210212 - I_Bought_The_Ultimate_Sword_And_Used_It_To_Fight_Everything_in_Who_Needs_A_Hero [7PZk3ZwOAYY].mkv

Specifically Jellyfin.Plugin.YoutubeMetadata.Providers. and that means it is working. Jellyfin reports the percentage complete for scanning based on something beyond each individual item in the library, I believe it is more on type of task completed.

I am going to mark this as closed but please reopen if you believe you found a issue.

Mafyuh commented 8 months ago

Same issue. had this JF install for 14 months, with like 10 plugins, tried this plugin a few days ago and completely broke my JF media scanning. Constantly showing its scanning for media and everything takes forever to load. Deleting plugin is broken, and sat there for 10 minutes before i just manually deleted the plugin folder, and still days later having issues, no logs whatsover relating to it on JF, tried every troubleshooting method i could think of, am now working on a new CT.