[0.7.0B7]Error renaming .nomedia

Questions and bug reports for Beta releases should be posted here.

[0.7.0B7]Error renaming .nomedia

Postby Taomyn » May 24th, 2012, 11:18 am

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
Taomyn
Newbie
Newbie
 
Posts: 41
Joined: August 25th, 2008, 4:29 am

Re: [0.7.0B7]Error renaming .nomedia

Postby shypike » May 24th, 2012, 12:46 pm

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
shypike
Administrator
Administrator
 
Posts: 16552
Joined: January 18th, 2008, 1:49 pm

Re: [0.7.0B7]Error renaming .nomedia

Postby Taomyn » May 24th, 2012, 12:55 pm

Code: Select all
%sn/%sn - S%0sE%0e - %en.%ext
User avatar
Taomyn
Newbie
Newbie
 
Posts: 41
Joined: August 25th, 2008, 4:29 am

Re: [0.7.0B7]Error renaming .nomedia

Postby Taomyn » May 25th, 2012, 1:09 pm

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: article=1337735024.25922.101@eu.news.astraweb.com, 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
Taomyn
Newbie
Newbie
 
Posts: 41
Joined: August 25th, 2008, 4:29 am

Re: [0.7.0B7]Error renaming .nomedia

Postby shypike » May 25th, 2012, 1:16 pm

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.
User avatar
shypike
Administrator
Administrator
 
Posts: 16552
Joined: January 18th, 2008, 1:49 pm

Re: [0.7.0B7]Error renaming .nomedia

Postby dogzipp » May 26th, 2012, 1:02 pm

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'
dogzipp
Jr. Member
Jr. Member
 
Posts: 51
Joined: April 3rd, 2012, 6:27 pm

Re: [0.7.0B7]Error renaming .nomedia

Postby shypike » May 26th, 2012, 3:20 pm

Use Beta8 and forget about this feature.
User avatar
shypike
Administrator
Administrator
 
Posts: 16552
Joined: January 18th, 2008, 1:49 pm

Re: [0.7.0B7]Error renaming .nomedia

Postby Spaldo » June 9th, 2012, 8:13 pm

Hello, I am using RC2 and getting .nomedia files in my directories :(
Spaldo
Newbie
Newbie
 
Posts: 6
Joined: April 30th, 2012, 3:36 am

Re: [0.7.0B7]Error renaming .nomedia

Postby shypike » June 10th, 2012, 5:34 am

You still have to disable the feature in Config->Special.
User avatar
shypike
Administrator
Administrator
 
Posts: 16552
Joined: January 18th, 2008, 1:49 pm

Re: [0.7.0B7]Error renaming .nomedia

Postby Spaldo » June 10th, 2012, 5:53 am

shypike wrote:You still have to disable the feature in Config->Special.


Sorry, I must be blind... Which option do I turn off?
Spaldo
Newbie
Newbie
 
Posts: 6
Joined: April 30th, 2012, 3:36 am

Re: [0.7.0B7]Error renaming .nomedia

Postby shypike » June 10th, 2012, 6:33 am

Config=>Special, almost at the bottom: "nomedia_marker" field, remove the text in the box.
Then click Save.
User avatar
shypike
Administrator
Administrator
 
Posts: 16552
Joined: January 18th, 2008, 1:49 pm

Re: [0.7.0B7]Error renaming .nomedia

Postby Spaldo » June 10th, 2012, 7:03 am

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 ???
Spaldo
Newbie
Newbie
 
Posts: 6
Joined: April 30th, 2012, 3:36 am

Re: [0.7.0B7]Error renaming .nomedia

Postby shypike » June 10th, 2012, 8:35 am

Then no new marker files should be created.
Existing ones you'll have to remove manually.
User avatar
shypike
Administrator
Administrator
 
Posts: 16552
Joined: January 18th, 2008, 1:49 pm


Return to Beta Releases