#95 open
Robert DeRose

Ability to detect .series_id file

Reported by Robert DeRose | December 12th, 2011 @ 02:28 AM | in v2.4

There are many TV Shows that have US and British version as well as many US shows that have International Editions.

Because of this, Rippers have many ways of naming the content to identify its origin.

Examples:

Last Man Standing, there is an OLD version from 2005, a BBC version and a US version from 2011.
The Daily Show, theTVDB has it listed as The Daily Show with John Stewart, but Rippers just call it The Daily Show.

Because of this I have created a wrapper bash function that looks for a '.series_id' file in the current folder and if it exist, appends --series-id=cat .series_id

function tvn() {
  if [[ -e '.series_id' ]]; then  
    id=`cat .series_id`
    tvnamer --series-id=$id -b $1
  else 
    tvnamer -b $1
  fi 
}

It would be cooler if tvnamer would just do this automatically though.

Comments and changes to this ticket

  • dbr/Ben

    dbr/Ben March 7th, 2012 @ 06:47 PM

    • State changed from “new” to “open”
    • Assigned user set to “dbr/Ben”

    I like the idea, but instead of using the .series_id file, it could look for the tvshow.nfo file used by SickBeard and XBMC:

    http://wiki.xbmc.org/index.php?title=Import/Export_library#TV_Shows

    Should be straight forward to find (check n parent directories for file for tvshow.nfo, grab tvshow/id value and use that with the --series-id thingy)

    If you don't use XBMC or SickBeard, you could create the tvshow.nfo file like this, and tvnamer would be happy:

    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <tvshow>
    <id>73388</id>
    </tvshow>
    

    Sound reasonable?

    (this kind of relates to the wontfix'd ticket #46)

  • dbr/Ben

    dbr/Ben March 8th, 2012 @ 03:48 PM

    • Milestone set to v2.3
    • Milestone order changed from “186344” to “0”
  • dbr/Ben

    dbr/Ben March 8th, 2012 @ 04:03 PM

    • Milestone changed from v2.3 to v2.4
    • Milestone order changed from “12” to “0”
  • Robert DeRose

    Robert DeRose March 8th, 2012 @ 10:57 PM

    Sounds awesome. Thanks!

  • Kyle

    Kyle May 3rd, 2012 @ 06:13 AM

    Not sure if this is the place, but can you explain how this will work if we are using TVNamer on my torrent download folder?

    I've got TVNamer setup to run on the folder once a day so it picks up anything that was downloaded the previous day and renames it. There will be a number of different shows in the folder. How will it know which series-id file to use for each file?

  • Robert DeRose

    Robert DeRose May 3rd, 2012 @ 08:46 AM

    The idea was not designed with that scenario in mind. I personally use flexget to download my torrents, and then using the path option I set the path to move the show into a folder structure /<root level>/<Series>/<Season>/<Episode>

    From there transmission then calls a script when the torrent is completed downloading, that script does a few things; it calls tvnamer via the above function (Shown in the ticket) and then it sends a tweet to a private account to inform me that a TV Show has been downloaded.

    Your scenario does not fit this model, you would need to add something to tvnamer to first detect the series name, then search through files named .series_id, maybe the file name could have the series name in it, using underscores, or better yet, there could be one .series_id file in yaml format representing a hash where the key is the series name and the value is the TVdb id.

  • Kyle

    Kyle May 3rd, 2012 @ 10:03 AM

    Ok...that makes sense. I've just started using flexget and tvnamer, so I'm still figuring a lot of this out.

    I like your idea of specifying the download folder in Flexget so each show downloads to its own folder. I think I'll just download to a series folder and then have TVNamer run on the folder to sort into season and rename the file properly.

    If I did that, I could have the .nfo file in the root of each series and TVNamer would pick it up. Something like:
    TV
    Series 1 series.nfo Season 1 Season 2 Series 2

  • Robert DeRose

    Robert DeRose May 3rd, 2012 @ 10:23 AM

    Here is my Flexget config for an example:
    http://pastebin.com/n6RcDHqF

    This is my transmission script called when a torrent is completed:
    http://pastebin.com/ZzT6S65m

    and here is my tvnamer wrapper script, until this feature is implemented:
    http://pastebin.com/by9LSbVT

    Best of Luck!

  • Kyle

    Kyle May 3rd, 2012 @ 10:28 AM

    That's awesome! Thank you so much for your help.

    And sorry for clogging up the ticket with my questions.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket

Referenced by

Pages