chenqingyu / auto-sub

Automatically exported from code.google.com/p/auto-sub
0 stars 0 forks source link

Skipped show, episodes still in wanted list #135

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Add a show to the location of tvseries
2. AutoSub will scan and added all episodes to wanted list
3. Click episode, choose to skip whole series
4. All episodes stay in Wanted list.

What is the expected output? What do you see instead?
I expect that the episodes will disappear from the wanted list. But they stay 
in there.

What version of the product are you using? On what operating system?
AutoSub beta v0.5.5 / Linux debian on my WD My Book Live 

Please provide any additional information below.

Original issue reported on code.google.com by Dionysiu...@gmail.com on 7 Oct 2012 at 4:13

GoogleCodeExporter commented 9 years ago
Run a 'Run Now' to clear the wanted list. Skipping shows only has affect after 
the next scandisk runs. With the default settings can take up to 1 hour. 

Original comment by romke.va...@gmail.com on 7 Oct 2012 at 4:40

GoogleCodeExporter commented 9 years ago
Did to the 'run now', but the wanted list is not cleared. When i click the 
show, and choose 'skip show', the result is 'Already skipped'. But the items of 
that show remain in the wanted list. They are there for over 2 days now, and 
Auto-Sub did already get some subtitles for me. Also the Api calls left are NOT 
zero.

I've two shows i want to skip, this is my Skipshow config:
dreamworks dragons- riders of berk = 0
mcleods daughters = 0

Namemapping is:
mcleods daughters = 5900
common law 2012 = 16348

For 'mcleods daughters' the downloads of subtitles is busy, and auto-sub is 
downloading the subs. Not really a problem, but i have to remove the srt's now 
manually, becuase i've got hardcoded subs in the downloads.

For 'Dreamworks Dragons- Riders Of Berk', i get the next error line in the log 
file many times:

2012-10-08 09:31:29,334 ERROR  getShowid: showid not found for Dreamworks 
Dragons- Riders Of Berk

This show is not on Bierdopje, so i want it removed from my wanted list, 
becuase i've got no showid.

Is there a workaround? Removing a file from my Linus nas? So the wanted list is 
clean, and it is building up again from scratch?

Original comment by Dionysiu...@gmail.com on 8 Oct 2012 at 7:47

GoogleCodeExporter commented 9 years ago
This is probably caused by a weird character in the file name. Could you post 
the file name as it is on your system? For both dreamworks dragon and mcleods 
daughters? Check your other issue for you other question.

Original comment by romke.va...@gmail.com on 8 Oct 2012 at 8:32

GoogleCodeExporter commented 9 years ago
Hi Romke, here your requested info...

Rootpath: /shares/xbmc/tvseries
Example of one of the files of MD:
 /McLeod's Daughters/McLeods.Daughters.S02E01.The.Drovers.Connection.avi
Exampe of one of the files of Dragons:
 /DreamWorks Dragons- Riders of Berk/DreamWorks Dragons- Riders of Berk.S01E04.mp4

Original comment by Dionysiu...@gmail.com on 8 Oct 2012 at 10:43

GoogleCodeExporter commented 9 years ago
Hi, just shutdown auto-sub. and started it again with: python Auto-Sub.py, and 
got the next error messages:

AutoSub: Changing output to log. Bye!
[08/Oct/2012:20:17:08] ENGINE Serving on 0.0.0.0:8083
Traceback (most recent call last):
  File "/root/auto-sub/autosub/Scheduler.py", line 21, in __init__
    self.command.run()
  File "/root/auto-sub/autosub/scanDisk.py", line 101, in run
    walkDir(str(autosub.ROOTPATH))
  File "/root/auto-sub/autosub/scanDisk.py", line 40, in walkDir
    srtfileeng = os.path.join(filename[:-4] + "." + autosub.SUBENG + ".srt")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 30: 
ordinal not in range(128)

Original comment by Dionysiu...@gmail.com on 8 Oct 2012 at 6:20

GoogleCodeExporter commented 9 years ago
owh, sorry, but the last comment of my, is (i think) not really related to the 
initial issue. I've tried to re-install auto-sub. And this error came up. I've 
looking into the code myself (i'm a .net programmer, so i know something about 
c#). And altered the scanDisk.py file. And now i'm not getting the error above. 
Maybe you can do something with my code if you like... Here is my alteration of 
the scanDisk.py file...

After line 32 in the code (the line with: if re.search('sample', filename): 
continue) if added the following lines:

                    filen = filename
                    try:
                        unicode(filen, "ascii")
                    except UnicodeError:
                        filen = unicode(filen, "utf-8")

than i did alter line 40 (original line number 40) from:
          srtfileeng = os.path.join(filename[:-4] + "." + autosub.SUBENG$
to
          srtfileeng = os.path.join(filen[:-4] + "." + autosub.SUBENG$

The strange thing (i think) is that this line was the cause of the error, but 
in the if-statement above this line (if (autosub.SUBNL != ""):) the filename 
variable is also used in the same way, and there i did not get an error...

Kind regards,
Dennis

Original comment by Dionysiu...@gmail.com on 8 Oct 2012 at 7:00

GoogleCodeExporter commented 9 years ago
They are related, check issue 102.
I already expected this, Auto-Sub isn't working correctly with utf8 characters 
and there are more problems then just the line you find. I have to rewrite some 
code before autosub completely is utf8 capable and this is casing:
 * errors / crashes
 * shows not being skipped
 * namemapping not working
 * and other issues mostly related to a showname containing a 'weird' character.
Just try to find the video file(s) that contain 'weird' characters and your 
problem is solved for now. I'm doing my best to make sure 0.5.6 is utf8 proof! 
(Btw, most of the fix will contain a function that worksarround the problem 
that python has with utf8 and that function almost does the same as your 
suggestion.)

Original comment by romke.va...@gmail.com on 8 Oct 2012 at 7:18