[0.7.0B7]Error renaming .nomedia

Questions and bug reports for Beta releases should be posted here.
Forum rules
Help us help you:
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
User avatar
Taomyn
Full Member
Full Member
Posts: 129
Joined: August 25th, 2008, 3:29 am

[0.7.0B7]Error renaming .nomedia

Post by Taomyn »

Sorry to have to report more problems with the .nomedia file, but a download just now failed as follows:

Code: Select all

2012-05-24 17:07:25,542::DEBUG::[tvsort:389] Renaming Series

2012-05-24 17:07:25,543::DEBUG::[tvsort:428] Rename: \\mediaserver\Multimedia\Video\TV\Hit & Miss\Hit & Miss - 1x01 - Episode 1\hit.and.miss.s01e01.720p.hdtv.x264-bia.mkv to \\mediaserver\Multimedia\Video\TV\Hit & Miss\Hit & Miss - 1x01 - Episode 1\Hit & Miss - S01E01 - Episode 1.mkv

2012-05-24 17:07:25,552::DEBUG::[tvsort:1065] Renaming files similar to: hit.and.miss.s01e01.720p.hdtv.x264-bia.mkv to Hit & Miss - S01E01 - Episode 1

2012-05-24 17:07:25,555::DEBUG::[misc:782] Moving. Old path:\\mediaserver\Multimedia\Video\TV\Hit & Miss\Hit & Miss - 1x01 - Episode 1\.nomedia new path:\\mediaserver\Multimedia\Video\TV\Hit & Miss\.nomedia unique?:False

2012-05-24 17:07:25,556::ERROR::[misc:794] Failed moving \\mediaserver\Multimedia\Video\TV\Hit & Miss\Hit & Miss - 1x01 - Episode 1\.nomedia to \\mediaserver\Multimedia\Video\TV\Hit & Miss\.nomedia

2012-05-24 17:07:25,556::INFO::[misc:795] Traceback: 

Traceback (most recent call last):
  File "sabnzbd\misc.pyo", line 791, in move_to_path
  File "shutil.pyo", line 81, in copyfile
IOError: [Errno 2] No such file or directory: '\\\\mediaserver\\Multimedia\\Video\\TV\\Hit & Miss\\Hit & Miss - 1x01 - Episode 1\\.nomedia'
Is it anything to do with the "&" symbol in the series name?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: [0.7.0B7]Error renaming .nomedia

Post by shypike »

It's not the &.
SeasonSort makes a list of files to be moved, just before .nomedia is deleted.
It shows the traceback because the file is absent afterwards.
Which Sort expression are you using? It looks like I missed a scenario during testing.
User avatar
Taomyn
Full Member
Full Member
Posts: 129
Joined: August 25th, 2008, 3:29 am

Re: [0.7.0B7]Error renaming .nomedia

Post by Taomyn »

Code: Select all

%sn/%sn - S%0sE%0e - %en.%ext
User avatar
Taomyn
Full Member
Full Member
Posts: 129
Joined: August 25th, 2008, 3:29 am

Re: [0.7.0B7]Error renaming .nomedia

Post by Taomyn »

Also happened with two movie downloads, one error'd:

Code: Select all

2012-05-25 18:01:02,864::DEBUG::[tvsort:1065] Renaming files similar to: john.carter.2012.1080p.bluray.x264-sparks.mkv to John Carter (2012)

2012-05-25 18:01:02,878::DEBUG::[misc:782] Moving. Old path:\\multimedia\Multimedia\Video\Movies\.\John Carter (2012)\.nomedia new path:\\multimedia\Multimedia\Video\Movies\.nomedia unique?:False

2012-05-25 18:01:02,878::ERROR::[misc:794] Failed moving \\multimedia\Multimedia\Video\Movies\.\John Carter (2012)\.nomedia to \\multimedia\Multimedia\Video\Movies\.nomedia

2012-05-25 18:01:02,880::INFO::[misc:795] Traceback: 

Traceback (most recent call last):
  File "sabnzbd\misc.pyo", line 791, in move_to_path
  File "shutil.pyo", line 81, in copyfile
IOError: [Errno 2] No such file or directory: '\\\\multimedia\\Multimedia\\Video\\Movies\\.\\John Carter (2012)\\.nomedia'
2012-05-25 18:01:02,993::DEBUG::[decoder:96] Decoding <Article: [email protected], bytes=793743, partnum=101, art_id=None
That one left the folder with movie and ".nomedia", but the other didn't error but left the file at the root along with the movie.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: [0.7.0B7]Error renaming .nomedia

Post by shypike »

From looking at the code I can understand why it can go wrong.
However, so far I haven't been able to reproduce a scenario in which it actually occurs. Weird.

The net result is that I will fix at least this specific issue and then
disable the feature by default. It requires testing of too many scenarios and therefore
it shouldn't have been added so late in the Beta period.
dogzipp
Newbie
Newbie
Posts: 49
Joined: April 3rd, 2012, 5:27 pm

Re: [0.7.0B7]Error renaming .nomedia

Post by dogzipp »

I am also having problem with .nomedia and 0.7.0b7

Code: Select all

2012-05-26 09:59:35,699::DEBUG::[misc:782] Moving. Old path:/mnt/DroboFS/Shares/Drobo/video/./Downton.Abbey.S01E03.720p.BluRay.x264-SHORTBREHD/.nomedia new path:/mnt/DroboFS/Shares/Drobo/video/.nomedia.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.25.26.27.28.29.30.31.32.33.34.35.36.37.38.39.40.41.42.43.44.45.46.47.48.49.50.51.52.53.54.55.56.57.58.59.60.61.62.63.64.65.66.67.68.69.70.71.72.73.74.75.76.77.78.79.80.81.82.83.84.85.86.1 unique?:False
2012-05-26 09:59:35,702::ERROR::[misc:794] Failed moving /mnt/DroboFS/Shares/Drobo/video/./Downton.Abbey.S01E03.720p.BluRay.x264-SHORTBREHD/.nomedia to /mnt/DroboFS/Shares/Drobo/video/.nomedia.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.25.26.27.28.29.30.31.32.33.34.35.36.37.38.39.40.41.42.43.44.45.46.47.48.49.50.51.52.53.54.55.56.57.58.59.60.61.62.63.64.65.66.67.68.69.70.71.72.73.74.75.76.77.78.79.80.81.82.83.84.85.86.1
2012-05-26 09:59:35,704::INFO::[misc:795] Traceback: 
Traceback (most recent call last):
  File "/mnt/DroboFS/Shares/DroboApps/sabnzbd/sabnzbd/misc.py", line 791, in move_to_path
    shutil.copyfile(path, new_path)
  File "/mnt/DroboFS/Shares/DroboApps/python2/lib/python2.7/shutil.py", line 82, in copyfile
    with open(dst, 'wb') as fdst:
IOError: [Errno 36] File name too long: '/mnt/DroboFS/Shares/Drobo/video/.nomedia.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.25.26.27.28.29.30.31.32.33.34.35.36.37.38.39.40.41.42.43.44.45.46.47.48.49.50.51.52.53.54.55.56.57.58.59.60.61.62.63.64.65.66.67.68.69.70.71.72.73.74.75.76.77.78.79.80.81.82.83.84.85.86.1'
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: [0.7.0B7]Error renaming .nomedia

Post by shypike »

Use Beta8 and forget about this feature.
Spaldo
Newbie
Newbie
Posts: 8
Joined: April 30th, 2012, 2:36 am

Re: [0.7.0B7]Error renaming .nomedia

Post by Spaldo »

Hello, I am using RC2 and getting .nomedia files in my directories :(
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: [0.7.0B7]Error renaming .nomedia

Post by shypike »

You still have to disable the feature in Config->Special.
Spaldo
Newbie
Newbie
Posts: 8
Joined: April 30th, 2012, 2:36 am

Re: [0.7.0B7]Error renaming .nomedia

Post by Spaldo »

shypike wrote:You still have to disable the feature in Config->Special.
Sorry, I must be blind... Which option do I turn off?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: [0.7.0B7]Error renaming .nomedia

Post by shypike »

Config=>Special, almost at the bottom: "nomedia_marker" field, remove the text in the box.
Then click Save.
Spaldo
Newbie
Newbie
Posts: 8
Joined: April 30th, 2012, 2:36 am

Re: [0.7.0B7]Error renaming .nomedia

Post by Spaldo »

shypike wrote:Config=>Special, almost at the bottom: "nomedia_marker" field, remove the text in the box.
Then click Save.
Firstly, thanks for the quick reply.

Unfortunately that box was already blank ???
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: [0.7.0B7]Error renaming .nomedia

Post by shypike »

Then no new marker files should be created.
Existing ones you'll have to remove manually.
Post Reply