- wesada - 2011-08-31 04:27
Eldorado Wrote:Wesada,
Testing your latest script changes
- Win7, XBMC Nightly as of Aug 29th
Missing some imports?
Code:
12:04:26 T:8284 ERROR: C:\Program Files (x86)\XBMC\addons\script.module.pysqlite\lib\pysqlite2\__init__.py:34: UserWarning: DeprecationWarning: the pysqlite2 module is deprecated; please change your script to use sqlite3.
warnings.warn("DeprecationWarning: the pysqlite2 module is deprecated; please change your script to use sqlite3.")
12:04:26 T:8284 INFO: -->Python script returned the following error<--
12:04:26 T:8284 ERROR: Error Type: <type 'exceptions.NameError'>
12:04:26 T:8284 ERROR: Error Contents: global name 'xbmcaddon' is not defined
12:04:26 T:8284 ERROR: Traceback (most recent call last):
File "C:\Users\M33282\AppData\Roaming\XBMC\addons\plugin.video.icefilms\default.py", line 23, in <module>
from icefilms_constants import * # moved the constants to somewhere manageable.
File "C:\Users\M33282\AppData\Roaming\XBMC\addons\plugin.video.icefilms\icefilms_constants.py", line 12, in <module>
ICEFILMS_URL = getSiteURL()
File "C:\Users\M33282\AppData\Roaming\XBMC\addons\plugin.video.icefilms\icefilms_constants.py", line 4, in getSiteURL
ao = xbmcaddon.Addon(id='plugin.video.icefilms')
NameError: global name 'xbmcaddon' is not defined
Haha, yeah bit of a pre-mature post yesterday. Was going through the code while waiting to pickup my wife. Posted the link to the needed import and the modified default.py on the release thread. Can get it from the unstable branch of my fork at bitbucket. http://code.wesada.ca/xbmc-icefilms/raw/f76437f59b8b/default.py
http://code.wesada.ca/xbmc-icefilms/raw/f76437f59b8b/icefilms_constants.py
- SilverLining - 2011-08-31 13:13
wesada Wrote:Haha, yeah bit of a pre-mature post yesterday. Was going through the code while waiting to pickup my wife. Posted the link to the needed import and the modified default.py on the release thread. Can get it from the unstable branch of my fork at bitbucket. http://code.wesada.ca/xbmc-icefilms/raw/f76437f59b8b/default.py
http://code.wesada.ca/xbmc-icefilms/raw/f76437f59b8b/icefilms_constants.py
Yep, seems to be working, well done, (but as it's replaced default.py, it's broken "Download & Watch").
- Eldorado - 2011-08-31 18:25
Working very nicely so far!
Wondering if someone can explain for me how this works and allows the seeking:
Code:
thread1 = threading.Thread(target=urllib.urlretrieve, args=(link[0], mypath))
thread1.start()
xbmc.sleep(10000) # Set a 10 second delay to allow the file start downloading a bit.
thread2 = threading.Thread(target=xbmc.Player( xbmc.PLAYER_CORE_DVDPLAYER ).play, args=(mypath, listitem))
thread2.start()
while thread2.isAlive():
pass
while os.path.exists(mypath):
try:
os.remove(mypath)
break
except:
pass
Versus just calling xbmc.player
eg. xbmc.Player( xbmc.PLAYER_CORE_DVDPLAYER ).play( link[0], listitem )
- wesada - 2011-08-31 19:32
Eldorado Wrote:Working very nicely so far!
Wondering if someone can explain for me how this works and allows the seeking:
Code:
thread1 = threading.Thread(target=urllib.urlretrieve, args=(link[0], mypath))
thread1.start()
xbmc.sleep(10000) # Set a 10 second delay to allow the file start downloading a bit.
thread2 = threading.Thread(target=xbmc.Player( xbmc.PLAYER_CORE_DVDPLAYER ).play, args=(mypath, listitem))
thread2.start()
while thread2.isAlive():
pass
while os.path.exists(mypath):
try:
os.remove(mypath)
break
except:
pass
Versus just calling xbmc.player
eg. xbmc.Player( xbmc.PLAYER_CORE_DVDPLAYER ).play( link[0], listitem )
It downloads the file in one thread, and plays the file in another. Because the file is on the device it's playing on, it's like playing any other video file.
- 95123321 - 2011-08-31 20:20
Not working for me on atv2, nothing happens after megaupload countdown. Here's my log http://pastebin.com/ibjQnkKF
- Eldorado - 2011-09-01 22:09
wesada Wrote:It downloads the file in one thread, and plays the file in another. Because the file is on the device it's playing on, it's like playing any other video file.
Very cool idea!
I haven't got this back to my home htpc yet where I usually experience buffering problems due to MegaUpload just not sending fast enough
What is the expected behavior when the 2nd thread tries to read further than what you have downloaded in the 1st thread?
- Dixon Butz - 2011-09-01 23:01
Can anyone fix the inability to play shows that have special characters like : -
A lot of TV shows have those on Icefilms.
- chrisuk11 - 2011-09-17 17:30
I have Eden version of XBMC and Aeon MQ3
Having searched google, i can see it seems to be a common issue, but can't see a fix for it -
Code:
16:21:28 T:7456 NOTICE: ==========================PARAMS:
URL: http://www.icefilms.info/movies/a-z/1
NAME: Movies
MODE: 51
IMDBNUM: None
MYHANDLE: 0
PARAMS: {'url': 'http%3A%2F%2Fwww.icefilms.info%2Fmovies%2Fa-z%2F1', 'mode': '51', 'name': 'Movies'}
16:21:28 T:7456 NOTICE: http://www.icefilms.info/movies/a-z/1
16:21:31 T:6792 NOTICE: -->Python Interpreter Initialized<--
16:21:31 T:6792 ERROR: E:\HTPC\Software\XBMC\addons\script.module.pysqlite\lib\pysqlite2\__init__.py:34: UserWarning: DeprecationWarning: the pysqlite2 module is deprecated; please change your script to use sqlite3.
warnings.warn("DeprecationWarning: the pysqlite2 module is deprecated; please change your script to use sqlite3.")
- Eldorado - 2011-09-19 15:59
chrisuk11 Wrote:I have Eden version of XBMC and Aeon MQ3
Having searched google, i can see it seems to be a common issue, but can't see a fix for it -
Code:
16:21:28 T:7456 NOTICE: ==========================PARAMS:
URL: http://www.icefilms.info/movies/a-z/1
NAME: Movies
MODE: 51
IMDBNUM: None
MYHANDLE: 0
PARAMS: {'url': 'http%3A%2F%2Fwww.icefilms.info%2Fmovies%2Fa-z%2F1', 'mode': '51', 'name': 'Movies'}
16:21:28 T:7456 NOTICE: http://www.icefilms.info/movies/a-z/1
16:21:31 T:6792 NOTICE: -->Python Interpreter Initialized<--
16:21:31 T:6792 ERROR: E:\HTPC\Software\XBMC\addons\script.module.pysqlite\lib\pysqlite2\__init__.py:34: UserWarning: DeprecationWarning: the pysqlite2 module is deprecated; please change your script to use sqlite3.
warnings.warn("DeprecationWarning: the pysqlite2 module is deprecated; please change your script to use sqlite3.")
Are you getting a script error due to this? Shouldn't be..
But there are a few things in Icefilms that needs some updating for Eden, but I don't think will actually cause any script errors..
- dax3k - 2011-09-25 23:15
Ok I'm completly new to this but I've started doing some reading for python.
I have a simple question to ask ..
How can I change that ugly megaupload logo everytime I wait for a movie to load ?
Any suggestions/guidance is very much appreciated.
dax3k
|