[Solved] TVNamer type plugin

Suggest, post, or discuss plugins for Deluge
Post Reply
Lazybones
Leecher
Leecher
Posts: 62
Joined: Sat Dec 31, 2011 11:00 pm

[Solved] TVNamer type plugin

Post by Lazybones »

Solved: Flexget can be used to get full TVDB info


https://github.com/dbr/tvnamer can already be run at CLI but doing so on an active torrent would kill seeding.

It appears via some other functions that deluge supports renaming without distrupting seeding via some other plugins such as the Bulk rename, and the flexget plugin is also appears to be able to change names but maintain seeding.

Having a proper episode naming plugin similar to tvnamer would be very handy.
Last edited by Lazybones on Sat Jan 07, 2012 9:05 pm, edited 1 time in total.
CSB
Leecher
Leecher
Posts: 66
Joined: Fri Dec 03, 2010 1:55 am

Re: [Request] TVNamer type plugin

Post by CSB »

What is the desired behavior?
Lazybones
Leecher
Leecher
Posts: 62
Joined: Sat Dec 31, 2011 11:00 pm

Re: [Request] TVNamer type plugin

Post by Lazybones »

Watch for video files in torrents (ext mkv,avi,mov etc) that contain user defined key words or a regex ([name1]|[Name2]) then do a look up on them and return a defined format for the episode.

IE

Turn something like this:

some.show.1x4.[name1].Xvid.avi
some.show.S1E4.[name2].some.title.avi

Into:

Some Show - S01E04 - The nice title of the episode.avi

If you were just to run TVNamer with an exec on complete script it may or may not work if Deluge has locked the file, or it may work and deluge will stop seeding. Thus having a plugin that does this would be rather nice.

On the other hand it could be done with exec if as requested in another topic it had events that fired after seeding.
gazpachoking
Moderator
Moderator
Posts: 315
Joined: Sat Aug 18, 2007 2:28 pm
Location: Pittsburgh, USA

Re: [Request] TVNamer type plugin

Post by gazpachoking »

You could use FlexGet to accomplish something like this.

Code: Select all

feed:
  rename_shows:
    # Use items in deluge as input
    from_deluge: yes
    # Parse series info from title
    metainfo_series: yes
    # Accept everything
    accept_all: yes
    # Except for things that didn't get series info parsed
    require_field:
      - series_name
    # Look up episode name from tvdb
    thetvdb_lookup: yes
    # Set your desired path and filename
    set:
      movedone: /mystorage/tv/{{series_name}}/Season {{series_season}}
      content_filename: {{series_name}} - {{series_id}} - {{ep_name|default('Unknown')}}
    # Apply the changes back to deluge
    deluge: yes
Run this feed periodically, it will set move completed path and rename your series in deluge whether they have completed yet or not, since everything is done via deluge, seeding will not be interrupted.
Lazybones
Leecher
Leecher
Posts: 62
Joined: Sat Dec 31, 2011 11:00 pm

Re: [Request] TVNamer type plugin

Post by Lazybones »

Thanks Gaz, however I just noticed "thetvdb_lookup: yes" and had added it to my flexget config the other night... I probably missed it the first time because I was using Transmission and it wasn't possible to pass the file name the way Deluge does.
Post Reply