pymedusa / Medusa

Automatic Video Library Manager for TV Shows. It watches for new episodes of your favorite shows, and when they are posted it does its magic.
https://pymedusa.com
GNU General Public License v3.0
1.8k stars 276 forks source link

Avoiding manually "Re-scan files" to recognize new show episodes #11160

Open jgwallace3 opened 1 year ago

jgwallace3 commented 1 year ago

I am using medusa in a docker container on a Windows 10 host. I manually download and move new show episodes into the directories for my TV shows -- I use filebot to do the rename and move.

To get medusa to 'see' the new episodes in the show list, I force a 'Re-scan files' for the show. This is time consuming as it seems to reprocess ALL episodes when all I really want is a scan for new (aka missing) ones.

Is there a better way to do this?

simonc56 commented 1 year ago

You can import episodes with API postprocess command. So they are properly added in medusa database and filesystem.

curl -G -s -S --data-urlencode "nzbName=$NAME" \
              --data-urlencode "proc_dir=$DIR" \
              --data-urlencode "proc_type=manual" \
              --data-urlencode "process_method=move" \
              --data-urlencode "quiet=1" \
              http://$SERVER/home/postprocess/processEpisode

https://github.com/pymedusa/Medusa/blob/6f25e867c61de1dbcabe813d6ad62d8e5667f238/medusa/server/web/home/post_process.py#L38-L41

jgwallace3 commented 1 year ago

I prefer to do the rename and move with a different tool. I just want to be able to nudge medusa and have it look for updated files.

simonc56 commented 1 year ago

processEpisode can let you rename as you want before. But why do you prefer to move file with another tool ?

jgwallace3 commented 1 year ago

I'm willing to try a call to the "processEpisode" handler, but I want to do the rename and move myself. Using the tool filebot, I can handle both movies and TV shows, they get renamed and moved as I like. I don't want it done automatically as I want to review the downloaded files before they're processed.

Where are the parameters to "processEpisode" documented?

simonc56 commented 1 year ago

moved as I like

What do you mean 'as you like' ? How a move by filebot is different from a move by medusa ?

jgwallace3 commented 1 year ago

Don't know the differences precisely, but it does both movies and TV shows, and works fine for me, so why change?

On Tue, Mar 21, 2023, 5:17 PM twolaw @.***> wrote:

moved as I like

What do you mean 'as you like' ? How a move by filebot is different from a move by medusa ?

— Reply to this email directly, view it on GitHub https://github.com/pymedusa/Medusa/issues/11160#issuecomment-1478591353, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACTX6FHARULSCTULBFFN6F3W5ILE3ANCNFSM6AAAAAAVJSMSTQ . You are receiving this because you authored the thread.Message ID: @.***>

simonc56 commented 1 year ago

why change?

To avoid this :

I force a 'Re-scan files' for the show. This is time consuming as it seems to reprocess ALL episodes

jgwallace3 commented 1 year ago

So, I asked initially about a simpler, less time-consuming 're-scan'.

The *arr products (sonarr, radarr, etc) have a manual import feature and I was hoping for something similar in Medusa. (Note, I don't want to change, right?)

If I can call "processEpisode" and have an episode "properly added in medusa database" without a move or rename, that would be great!

I -will- look into trying the Medusa post-process. I -do- really like Medusa and have used it for years.

jgwallace3 commented 1 year ago

Different angle: if I can't eliminate re-scan, can I make it more efficient? Delete or archive old episodes from old seasons? Or ignore?

jgwallace3 commented 1 year ago

As a work-around, I use my rename tool to 'stage' episodes to a directory which I am having medusa watch in post-processing. It gets the episodes added without a re-scan, but feels cumbersome still.