Hispanico957 23 Posted January 9 Posted January 9 (edited) I don't know how or why but if I go to view the TV Series genres, genres appear that don't exist and if I go inside they are empty. How can I delete and not show these? Thank you Hispa Edited January 9 by Hispanico957
Neminem 1515 Posted January 10 Posted January 10 @Hispanico957do you see a play button when you mouse over the empty genre? If you do you can see that the playing episode has genre in metadata. I suspect that Emby for some reason has started to import genre's from single episodes. 1
Hispanico957 23 Posted January 10 Author Posted January 10 (edited) 36 minutes ago, Neminem said: @Hispanico957do you see a play button when you mouse over the empty genre? If you do you can see that the playing episode has genre in metadata. I suspect that Emby for some reason has started to import genre's from single episodes. Yes is true...i search also in metadati of SerieTv, but there is not to change this strange import Now that we found this bug how i can fix ? Thnak Hispa Edited January 10 by Hispanico957
Neminem 1515 Posted January 10 Posted January 10 (edited) Devs would need to answer that But I went into every episode and removed genres from them. That fixed it for me, I have not seen the issue after. TBH it was a lot of work. Clicking play on genre, to see what episode to edit. Edited January 10 by Neminem 1
Hispanico957 23 Posted January 10 Author Posted January 10 4 minutes ago, Neminem said: Devs would need to answer that But I went into every episode and removed genres from them. That fixed it for me, I have not seen the issue after. Thank i try your suggestions but in my case i not fix the issue Hispa
Neminem 1515 Posted January 10 Posted January 10 (edited) Ok sorry to hear that. Guess dev's will need to answer. Edited January 10 by Neminem 1
Hispanico957 23 Posted January 11 Author Posted January 11 I verify again with different case: - screenshot 01 where appear this generes "Documetary" callod "Notte sul Pianeta terra". This Tvseries or movie not exist on my nas. I play cliking on video arrow and play Tvseries "Formula 1 Drvi to survive" ??????? - scrrenshot 02 i click on TVseries "Formula 1 Drvi to survive" and not Documentary genres appear. I delete anyway all genres and it appears the same !!!!! I hope staff solve this BUG Thank Hispa 1
Hispanico957 23 Posted January 15 Author Posted January 15 PLS DEV... some solution or workaround to solve this bug ? Thank and good day Hispa
cochize1 55 Posted January 15 Posted January 15 Just to chip in. I also noticed that problem that some empty genres are generated and even random episodes/series are played when right-clicking Play on that folder. It is probably because episodes within the series have that genre listed and not the series itself. To help my locate that files I wrote a python script that scans your library nfo and list all nfo's that has given genre. In my case, that was 'Sci-Fi'. I have also 'Science Fiction' and 'Sci-Fi & Fantasy' but the 'Sci-Fi' folder was empty but present. What I did was find the episodes with that tag and added 'Sci-Fi' to the series itself so it would not be empty. Still a bug, but worked around it. Here is the script.scifi.py 1
Hispanico957 23 Posted January 15 Author Posted January 15 8 hours ago, cochize1 said: Just to chip in. I also noticed that problem that some empty genres are generated and even random episodes/series are played when right-clicking Play on that folder. It is probably because episodes within the series have that genre listed and not the series itself. To help my locate that files I wrote a python script that scans your library nfo and list all nfo's that has given genre. In my case, that was 'Sci-Fi'. I have also 'Science Fiction' and 'Sci-Fi & Fantasy' but the 'Sci-Fi' folder was empty but present. What I did was find the episodes with that tag and added 'Sci-Fi' to the series itself so it would not be empty. Still a bug, but worked around it. Here is the script.scifi.py I thank you... in which way i can run this script insto share\folder\serietv ? I hop DEV fix this bug........ Hispa
cochize1 55 Posted January 15 Posted January 15 Assuming you're on PC and have Python installed... you just double click the file and in prompts you to choose the folder to scan. You pick i.e. TV Series folder and it scans all nfo files in this folder and it's subfolders and list all nfo files that have Sci-Fi genre set (it does not modify anything, it just print you a list in Terminal/PowerShell window with all nfo files. If you care to look for other genres you just have to change this part in the script to your liking TARGET_LINE = "<genre>Sci-Fi</genre>" Hope this helps. As I said, for my TV show library of around 16.000 files it took less than a minute to find all nfo with specified genre. 1
Hispanico957 23 Posted January 15 Author Posted January 15 (edited) 31 minutes ago, cochize1 said: Assuming you're on PC and have Python installed... you just double click the file and in prompts you to choose the folder to scan. You pick i.e. TV Series folder and it scans all nfo files in this folder and it's subfolders and list all nfo files that have Sci-Fi genre set (it does not modify anything, it just print you a list in Terminal/PowerShell window with all nfo files. If you care to look for other genres you just have to change this part in the script to your liking TARGET_LINE = "<genre>Sci-Fi</genre>" Hope this helps. As I said, for my TV show library of around 16.000 files it took less than a minute to find all nfo with specified genre. I try ...so if in my case for example see my previous image: i have "Biografo" so i must change in file this line ? from: TARGET_LINE = "<genre>Sci-Fi</genre>" to: TARGET_LINE = "<genre>Biografo</genre>" Thank Hispa Edited January 15 by Hispanico957
cochize1 55 Posted January 15 Posted January 15 these are some addons to basic python, you probably should just install it with this command in Terminal: py -m pip install tqdm colorama or python -m pip install tqdm colorama
Hispanico957 23 Posted January 15 Author Posted January 15 4 minutes ago, cochize1 said: these are some addons to basic python, you probably should just install it with this command in Terminal: py -m pip install tqdm colorama or python -m pip install tqdm colorama C:\Users\Marco\Desktop>python -m pip install tqdm colorama Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: tqdm in c:\users\marco\appdata\roaming\python\python312\site-packages (4.67.1) Requirement already satisfied: colorama in c:\users\marco\appdata\roaming\python\python312\site-packages (0.4.6) Hispa
Hispanico957 23 Posted January 15 Author Posted January 15 THANKKKKKKKKKKKKKKKKKKKK mate I run your marvelous file change the reference of generes... the output are file.nfo which contain the genre.... i open nfo file i delete the genre i rescan library and perfect You've been very helpful. Have a good evening. Hispa
cochize1 55 Posted January 15 Posted January 15 glad I could help:) I will get back to watching Barcelona now. Que te vaya bien amigo! 1
Hispanico957 23 Posted January 15 Author Posted January 15 4 minutes ago, cochize1 said: glad I could help:) I will get back to watching Barcelona now. Que te vaya bien amigo! VAMONOSSSSSSSSSSSSSS Hispa
Hispanico957 23 Posted January 16 Author Posted January 16 19 hours ago, cochize1 said: glad I could help:) I will get back to watching Barcelona now. Que te vaya bien amigo! In majority the script run very well but for certain genres not show the file .nfo... in my case Sci-Fi, run script not find anything but the genres is present. So i must click on play to see which SerieTv is Hispa
cochize1 55 Posted January 16 Posted January 16 Strange since exactly 'Sci-Fi' is what works for me. Maybe it's a matter o casing? The script is case sensitive. Or maybe spaces or dash?
Hispanico957 23 Posted January 19 Author Posted January 19 (edited) But after editing the .nfo file, do you have to lock the series to prevent the metadata from updating? Should the lock be green or black? Thank Hispa P.S. I hope STAFF FIX IT as soon as possible because It's really time consuming and tedious to sort out all the nfo files. wrong Edited January 19 by Hispanico957
cochize1 55 Posted January 19 Posted January 19 If you edit genre in emby itself I believe it locks itself automatically and stays that way. If you edit nfo manually I think you need to run either Scan Library or Scan Metadata Folder but this will not lock the genres and will change should you ever hit refresh metadata for this series (or had it set to refresh i.e. every month in library settings). What I did, i didnt delete unnecessary genres one by one, i just added the given genre (Biography or Sci-Fi) tp the show that had at least of it's episodes under that genre. Believe it was much faster that way. 1
Hispanico957 23 Posted January 19 Author Posted January 19 Okay understand ...but only for infomation the lock on geners must be green or black to blocked updates ? Thank again Hispa
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now