[RELEASE] Undertexter.se (Script) Swedish Subtitles Downloader

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
DragonSlayer Offline
Junior Member
Posts: 12
Joined: Feb 2004
Reputation: 0
Location: Brösarp / Kristianstad / Sweden
Post: #31
Code:
16:26:45 M: 21180416  NOTICE: -->Python Initialized<--
16:26:45 M: 23441408  NOTICE: Q:\scripts\Undertexter\default.py:379: SyntaxWarning: name 'MOVIE_NAME' is used prior to global declaration
                                              def downloadSubtitle(self):
16:26:47 M: 17788928   ERROR: Error Type: exceptions.ImportError
16:26:47 M: 17788928   ERROR: Error Contents: No module named rarfile
16:26:47 M: 17788928   ERROR: Traceback (most recent call last):
                                              File "Q:\scripts\Undertexter\default.py", line 17, in ?
                                                import rarfile
                                            ImportError: No module named rarfile

xbox v1.0, tsop with on/off switch, 300gb hdd
find quote
biljard Offline
Junior Member
Posts: 24
Joined: Oct 2009
Reputation: 0
Post: #32
DragonSlayer Wrote:
Code:
16:26:45 M: 21180416  NOTICE: -->Python Initialized<--
16:26:45 M: 23441408  NOTICE: Q:\scripts\Undertexter\default.py:379: SyntaxWarning: name 'MOVIE_NAME' is used prior to global declaration
                                              def downloadSubtitle(self):
16:26:47 M: 17788928   ERROR: Error Type: exceptions.ImportError
16:26:47 M: 17788928   ERROR: Error Contents: No module named rarfile
16:26:47 M: 17788928   ERROR: Traceback (most recent call last):
                                              File "Q:\scripts\Undertexter\default.py", line 17, in ?
                                                import rarfile
                                            ImportError: No module named rarfile

I tried the new script aswell and i get exactly same error as you do.
find quote
blittan Offline
Team-XBMC Handyman
Posts: 1,715
Joined: Jun 2004
Reputation: 11
Location: Sweden
Post: #33
forgot to include rarfile.py i would guess

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
If you don't have the time to read them, please don't take the time to post in this forum!
For troubleshooting and bug reporting please make sure you read this first.
find quote
Popeye Offline
Posting Freak
Posts: 878
Joined: Aug 2009
Reputation: 25
Location: Sweden
Post: #34
Cr*p, rather forgot to remove the import since its not needed. Sorry for this..
And here is a fixed version

sverigesradio | Pneumatic | SABnzbd | XBMC that just works - openelec
(This post was last modified: 2010-01-26 23:06 by Popeye.)
find quote
biljard Offline
Junior Member
Posts: 24
Joined: Oct 2009
Reputation: 0
Post: #35
Popeye Wrote:Cr*p, rather forgot to remove the import since its not needed. Sorry for this..
And here is a fixed version

Hmm dont know if im doing something wrong, still dont work.

Here is the log.

Quote:00:45:34 T:4072 M:4294967295 NOTICE: -->Python Interpreter Initialized<--
00:45:34 T:4072 M:4294967295 NOTICE: C:\Users\Christian\AppData\Roaming\XBMC\scripts\Undertexter-v1.5\default.py:379: SyntaxWarning: name 'MOVIE_NAME' is used prior to global declaration
def downloadSubtitle(self):
00:45:34 T:4072 M:4294967295 ERROR: Error Type: exceptions.ImportError
00:45:34 T:4072 M:4294967295 ERROR: Error Contents: No module named rarfile
00:45:34 T:4072 M:4294967295 ERROR: Traceback (most recent call last):
File "C:\Users\Christian\AppData\Roaming\XBMC\scripts\Undertexter-v1.5\default.py", line 17, in ?
import rarfile
ImportError: No module named rarfile
00:45:34 T:700 M:4294967295 ERROR: Control 402 in window 10107 has been asked to focus, but it can't
find quote
Popeye Offline
Posting Freak
Posts: 878
Joined: Aug 2009
Reputation: 25
Location: Sweden
Post: #36
@biljard, if you still get the "ImportError: No module named rarfile" you dont have the latest version. Go into the default.py and remove the line 17 "import rarfile" and you will have the latest...

sverigesradio | Pneumatic | SABnzbd | XBMC that just works - openelec
find quote
biljard Offline
Junior Member
Posts: 24
Joined: Oct 2009
Reputation: 0
Post: #37
Popeye Wrote:@biljard, if you still get the "ImportError: No module named rarfile" you dont have the latest version. Go into the default.py and remove the line 17 "import rarfile" and you will have the latest...

Worked now, thanks!
find quote
blittan Offline
Team-XBMC Handyman
Posts: 1,715
Joined: Jun 2004
Reputation: 11
Location: Sweden
Post: #38
popeye: some thoughts and suggestions..

- do not use versioning in your folder name (eg: Undertexter-v1.5) just use Undertexter, this will save you problems when users upgrade the script.

Perhaps you and Amet could team up and write some sort of combined subtitle script. each site could be added as plugins/channels/sources to the main script, look at how Uitzendinggemist handles channels. If you two needs some more input/suggestions/ideas please contact me on blittan(a)xbmc.org

Also look at http://xbmc.sourceforge.net/python-docs/...tSubtitles for making the user not having to set a subtitle directory in advancedsettings.xml

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
If you don't have the time to read them, please don't take the time to post in this forum!
For troubleshooting and bug reporting please make sure you read this first.
find quote
Popeye Offline
Posting Freak
Posts: 878
Joined: Aug 2009
Reputation: 25
Location: Sweden
Post: #39
blittan Wrote:- do not use versioning in your folder name (eg: Undertexter-v1.5) just use Undertexter, this will save you problems when users upgrade the script.
My bad, was a bit eager to get it out. I'm not planning on continuing with this script in its current form..

blittan Wrote:Perhaps you and Amet could team up and write some sort of combined subtitle script. each site could be added as plugins/channels/sources to the main script, look at how http://www.rieter.net/uitzendinggemist/ handles channels. If you two needs some more input/suggestions/ideas please contact me on blittan(a)xbmc.org

Also look at http://xbmc.sourceforge.net/python-docs/...tSubtitles for making the user not having to set a subtitle directory in advancedsettings.xml

Yes, I've already been in contact with Amet but since I'm a complete python beginner we decided to start out with a stand-alone app and later focus on merging the two. I will start digging in his code now.
Undertexter.se also has the imdb-id search option that I will dig into and port my shell code to python...

Regarding "#Player-setSubtitles" This will still require the subtitle to be stored somewhere so the option would rather be: if no subfolder set (and not the option to save in movie folder, or failed to save there) then set the temp folder...

Thanks for great input

sverigesradio | Pneumatic | SABnzbd | XBMC that just works - openelec
(This post was last modified: 2010-01-28 10:57 by Popeye.)
find quote
blittan Offline
Team-XBMC Handyman
Posts: 1,715
Joined: Jun 2004
Reputation: 11
Location: Sweden
Post: #40
Great, if you and Amet came up with a subtitle script that acts as a common interface that can be extended by writing site-plugins, sort of scrapers or something along those lines, then it can be extended with other subtitle sites aswell.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
If you don't have the time to read them, please don't take the time to post in this forum!
For troubleshooting and bug reporting please make sure you read this first.
find quote