Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

skip empty/embedded movies/tv-shows #22

Open
ajmandourah opened this issue May 15, 2024 · 5 comments
Open

skip empty/embedded movies/tv-shows #22

ajmandourah opened this issue May 15, 2024 · 5 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@ajmandourah
Copy link

ajmandourah commented May 15, 2024

When the tv show or the movie is unmonitered (and therefore no subtitles are downloaded) the script stops and end the tasks with (no episodes found or something like that.

this is extremely helpful when you are having multiple instances of radarr and sonarr and you sync them with import lists to avoid duplicate entries in a library

I would love to contribute but unfortunatly I don't know rust.

@mateoradman mateoradman self-assigned this May 16, 2024
@mateoradman mateoradman added the enhancement New feature or request label May 16, 2024
@mateoradman mateoradman added this to the v0.1.5 milestone May 16, 2024
@mateoradman
Copy link
Owner

Hi @ajmandourah, thank you very much for proposing this enhancement. I am not super familiar with unmonitored entries, so I have a question for you. Does it make sense to always skip unmonitored entries, or is there any value in trying to sync those, too? In other words, do you think it would make sense to add a CLI flag such as --skip-unmonitored or would you skip them by default?

@ajmandourah
Copy link
Author

@mateoradman
Thank you for the prompt response.
regarding your question well that depend on the reason why the show is unmonitered. I would suggest adding the flag you mentioned as it gives more option to the user in case he would want to skip or not.

There is another issue though even with the flag. it seems like the program panics as soon a show have no episods and wont continue syncing the next show. in my case the first show have episodes but the second show is unmonitered ( I have it downloaded in another sonarr instance) and the program is ending the script with no error messege as soon as it reaches the second show. i have more than 100 shows in my library. I did not see this behaviour while syncing movies though as i have movies that is unmonitered.

@mateoradman mateoradman modified the milestones: v0.1.5, v0.1.6 May 20, 2024
@ajmandourah
Copy link
Author

ajmandourah commented May 22, 2024

going through the bazarr api, it seems like if a movie or an episodes already downloaded and have a subtitle which is embedded will still be listed when quering the /episodes endpoint. but these will report file_size and path as null.
I didn't go through your code but it would be best if checking these keys and if nil skip these subtitles.

@mateoradman mateoradman changed the title skipping unmoniter (empty movies\shows) skip empty/embedded movies/tv-shows May 28, 2024
@ajmandourah
Copy link
Author

I want to thank you for your efforts. I want also to let you know that i made my own cli tool also for the same purpose albiet in golang (as i feel much comfortable working with it.) and its mainly for syncing, feel free to copy/get inspiration out of it .
https://github.com/ajmandourah/bazarr-sync

skipping the embedded subs works.

@mateoradman
Copy link
Owner

Great job, and thank you! 🙂

@mateoradman mateoradman modified the milestones: v0.1.6, v0.1.7 Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants