#130 ✓resolved
bonelifer

After Recent tvnamer Update....

Reported by bonelifer | March 7th, 2013 @ 11:01 AM

It not working completely right:

Loading config: config.json
####################
# Starting tvnamer
# Found 1 episode
####################
# Processing file: Comedy Central Presents.S15E05.mkv
# Detected series: 74337 (season: 15, episode: 5)
####################
Old filename: Comedy Central Presents.S15E05.mkv
Before custom output replacements: Comedy Central Presents - [15x05] - Chris D'Elia.mkv
New filename: Comedy Central Presents - [15x05] - Chris D'Elia.mkv
New path: /media/Store/incoming/Comedy Central Presents - [15x05] - Chris D'Elia.mkv
Creating directory /media/Store/incoming
rename /media/Store/incoming/Comedy Central Presents.S15E05.mkv to /media/Store/incoming/Comedy Central Presents - [15x05] - Chris D'Elia.mkv
OSError(1, 'Operation not permitted')
New path: /media/Store/Videos/TV/Comedy Central Presents/Season 15/Comedy Central Presents.S15E05.mkv
Creating directory /media/Store/Videos/TV/Comedy Central Presents/Season 15
OSError(2, 'No such file or directory')

####################
# Done



If I run the command again:

Loading config: config.json
####################
# Starting tvnamer
# Found 1 episode
####################
# Processing file: Comedy Central Presents - [15x05] - Chris D'Elia.mkv
# Detected series: 74337 (season: 15, episode: 5)
####################
Existing filename is correct: Comedy Central Presents - [15x05] - Chris D'Elia.mkv
####################
New path: /media/Store/Videos/TV/Comedy Central Presents/Season 15/Comedy Central Presents - [15x05] - Chris D'Elia.mkv
Move file?
([y]/n/q)
Moving file
New path: /media/Store/Videos/TV/Comedy Central Presents/Season 15/Comedy Central Presents - [15x05] - Chris D'Elia.mkv
Creating directory /media/Store/Videos/TV/Comedy Central Presents/Season 15
OSError(u"File /media/Store/Videos/TV/Comedy Central Presents/Season 15/Comedy Central Presents - [15x05] - Chris D'Elia.mkv already exists, not forcefully moving /media/Store/incoming/Comedy Central Presents - [15x05] - Chris D'Elia.mkv",)

####################
# Done

It wasn't doing this before. Error happens whether or not the folder exists or not. It correctly renames the file, then gives an error. Strange it at basically works after the command is rerun on the now renamed file. It also did this as well with files that weren't already there.

Comments and changes to this ticket

  • bonelifer

    bonelifer March 7th, 2013 @ 11:52 AM

    Ok tried it again. With the Season 2 folder already existing, but these two episodes not existing:

    Loading config: config.json
    ####################
    # Starting tvnamer
    # Found 2 episodes
    ####################
    # Processing file: MASH.S02E04.mkv
    # Detected series: 70994 (season: 2, episode: 4)
    ####################
    Old filename: MASH.S02E04.mkv
    Before custom output replacements: MASH - [02x04] - For the Good of the Outfit.mkv
    New filename: MASH - [02x04] - For the Good of the Outfit.mkv
    New path: /media/Store/incoming/MASH - [02x04] - For the Good of the Outfit.mkv
    Creating directory /media/Store/incoming
    rename /media/Store/incoming/MASH.S02E04.mkv to /media/Store/incoming/MASH - [02x04] - For the Good of the Outfit.mkv
    OSError(1, 'Operation not permitted')
    New path: /media/Store/Videos/TV/MASH/Season 02/MASH.S02E04.mkv
    Creating directory /media/Store/Videos/TV/MASH/Season 02
    OSError(2, 'No such file or directory')
    
    ####################
    # Processing file: MASH.S02E05.mkv
    # Detected series: 70994 (season: 2, episode: 5)
    ####################
    Old filename: MASH.S02E05.mkv
    Before custom output replacements: MASH - [02x05] - Dr. Pierce and Mr. Hyde.mkv
    New filename: MASH - [02x05] - Dr. Pierce and Mr. Hyde.mkv
    New path: /media/Store/incoming/MASH - [02x05] - Dr. Pierce and Mr. Hyde.mkv
    Creating directory /media/Store/incoming
    rename /media/Store/incoming/MASH.S02E05.mkv to /media/Store/incoming/MASH - [02x05] - Dr. Pierce and Mr. Hyde.mkv
    OSError(1, 'Operation not permitted')
    New path: /media/Store/Videos/TV/MASH/Season 02/MASH.S02E05.mkv
    Creating directory /media/Store/Videos/TV/MASH/Season 02
    OSError(2, 'No such file or directory')
    
    ####################
    # Done
    
  • Ohad Lutzky

    Ohad Lutzky January 5th, 2014 @ 08:54 AM

    This fix might be helpful:
    https://github.com/dbr/tvnamer/pull/89

    I've been having the same problem.

  • dbr/Ben

    dbr/Ben April 11th, 2017 @ 09:10 PM

    • State changed from “new” to “resolved”

    I believe this should be fixed by the pull request Ohad Lutzky mentioned

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

Pages