Icefilms (Icefilms.info) Addon Development Thread

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Closed
wesada Offline
Junior Member
Posts: 17
Joined: Apr 2011
Reputation: 0
Location: Northwestern Ontario, Canada
Post: #271
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_const​ants.py", line 12, in <module>
                                                ICEFILMS_URL = getSiteURL()
                                              File "C:\Users\M33282\AppData\Roaming\XBMC\addons\plugin.video.icefilms\icefilms_const​ants.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/...default.py

http://code.wesada.ca/xbmc-icefilms/raw/...nstants.py

Latest version of my modifications to the icefilms plugin
http://www.bitbucket.org/wesada/xbmc-ice...default.py
Installation Instructions
http://forum.xbmc.org/showpost.php?p=860365
find
SilverLining Offline
Junior Member
Posts: 13
Joined: Feb 2010
Reputation: 0
Post: #272
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/...default.py

http://code.wesada.ca/xbmc-icefilms/raw/...nstants.py

Yep, seems to be working, well done, (but as it's replaced default.py, it's broken "Download & Watch").

System:............... Acer Revo 3600 ION/PCI/SSE2
O/S:.................. Ubuntu 11.10 (oneiric) 64-bit Gnome 3.2.1
Linux:................ 3.0.0.17-generic
XBMC:................. 11.0 Git:Unknown (Compiled: Mar 24 2012)
Skin:................. Transparency! v4.0.5
MythTV:............. 0.25
find
Eldorado Offline
Posting Freak
Posts: 922
Joined: May 2009
Reputation: 11
Post: #273
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 )
find
wesada Offline
Junior Member
Posts: 17
Joined: Apr 2011
Reputation: 0
Location: Northwestern Ontario, Canada
Post: #274
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.

Latest version of my modifications to the icefilms plugin
http://www.bitbucket.org/wesada/xbmc-ice...default.py
Installation Instructions
http://forum.xbmc.org/showpost.php?p=860365
find
95123321 Offline
Junior Member
Posts: 39
Joined: Aug 2011
Reputation: 0
Post: #275
Not working for me on atv2, nothing happens after megaupload countdown. Here's my log http://pastebin.com/ibjQnkKF
find
Eldorado Offline
Posting Freak
Posts: 922
Joined: May 2009
Reputation: 11
Post: #276
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?
find
Dixon Butz Offline
Fan
Posts: 395
Joined: Dec 2010
Reputation: 2
Location: Earth USA
Post: #277
Can anyone fix the inability to play shows that have special characters like : -

A lot of TV shows have those on Icefilms.
find
chrisuk11 Offline
Member
Posts: 69
Joined: Jun 2011
Reputation: 0
Post: #278
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.")
find
Eldorado Offline
Posting Freak
Posts: 922
Joined: May 2009
Reputation: 11
Post: #279
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..
find
dax3k Offline
Junior Member
Posts: 10
Joined: Sep 2011
Reputation: 0
Post: #280
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
find
Thread Closed