bstrdsmkr / 1channel Goto Github PK
View Code? Open in Web Editor NEW1Channel.ch plugin for XBMC
Home Page: http://expandedmedia.org/XBMCHUB/phpBB3/viewforum.php?f=31
1Channel.ch plugin for XBMC
Home Page: http://expandedmedia.org/XBMCHUB/phpBB3/viewforum.php?f=31
Only open and write to the .strm file if it doesn't already exist. Should speed up library scanning
Selecting sub-categories (or even doing a search) inside Movies/TV Show will only give "Featured" items as the result.
Platform:
AppleTV2 XBMC
Requires #35
Nothing is playing at the moment through my 1channel plugin. I'm getting a 'no sources found for this item' on everything.
Any ideas?
Thanks in advance
jloafs
If I play a video from the 'Recently added' deck above TV Shows the thumbnail won't show up in OSD, but, if I play a video from within TV Show section in library, the thumbnail does show up
Requires #35
Add settings toggle to paginate results for a-z or show all listings at once
Cache paginated results, add results from next page to current listing
Requires #35
Add tvshow.nfo to the show folder in the library to assist TvDB scan in finding the program. IMDB URL is required in tvshow.nfo
Requires #35 and changes to url resolver
because the GetFilteredResults uses addDirectoryItem with true for folder, Confluence, the default XBMC skin does not display movie meta data.
Setting the folder to False && passing dialog=1 in the URL resolved the issue and the meta data is used in Fanart View for Confluence Skin.
Error Log
23:53:43 T:4048 NOTICE: 1Channel: {'url': 'http://www.1channel.ch/watch-12518-Glee', 'section': 'tv', 'title': 'Glee ', 'mode': 'DeleteFav', 'year': '2009'}
23:53:43 T:4048 NOTICE: Deleting Fav: tv
Glee
http://www.1channel.ch/watch-12518-Glee
23:53:43 T:4048 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'mysql.connector.errors.ProgrammingError'>
Error Contents: Wrong number of arguments during string formatting
Traceback (most recent call last):
File "C:\Users\Xbmc.ZuluOne\AppData\Roaming\XBMC\addons\plugin.video.1channel\default.py", line 1765, in <module>
DeleteFav(section, title, url)
File "C:\Users\Xbmc.ZuluOne\AppData\Roaming\XBMC\addons\plugin.video.1channel\default.py", line 153, in DeleteFav
cursor.execute('DELETE FROM favorites WHERE type=? AND name=? AND url=?', (fav_type, name, url))
File "C:\Users\Xbmc.ZuluOne\AppData\Roaming\XBMC\addons\script.module.myconnpy\lib\mysql\connector\cursor.py", line 310, in execute
"Wrong number of arguments during string formatting")
ProgrammingError: Wrong number of arguments during string formatting
-->End of Python script error report<--
While modifying the plugin to work on xbmc4xbox I noticed an error when playing a video (actually happens after playback here)
with sqlite it should be connecting to db_dir rather than the name DB see diff:
diff --git a/playback.py b/playback.py index d0ea2f5..5aedc55 100644 --- a/playback.py +++ b/playback.py @@ -80,7 +80,7 @@ class Player(xbmc.Player): sql = sql.replace('?','%s') db = database.connect(DB_NAME, DB_USER, DB_PASS, DB_ADDRESS, buffered=True) else: - db = database.connect(DB) + db = database.connect(db_dir) cur = db.cursor() cur.execute(sql, (self.video_type, self.title, self.season, self.episode, self.year)) bookmark = cur.fetchone()
First of all, thank you for all your great job, its amazing what you do.
I've been follow your script and openelec updates for a while with a raspberry pi. The last update i did, it seems to be working well (the first time I start it), I watch a movie without any problems, but after i restart the raspberry and try to initialize de 1channel addon, it fails to start with 1channel.plugin.fail message. The build Im testing its Raspberry Pi ARM Version:2.99.5 (3.0 RC 5). Have you already detected something about this?
Thanks in advance
Can't refresh the metadata for a TV Show. Works fine for movies
TV Section works if the Metadata is enabled, but doesn't when it is disabled.
This is on OSX & ATV2
Use http://www.1channel.ch/alltvshows.php and http://www.1channel.ch/allmovies.php for better metapack creation
According to this post:
http://torrentfreak.com/1channel-causes-panic-with-mystery-domain-failure-130503/
Simply change the BASEURL in default.py
and other occurrences in the same file from 1channel.ch
to letmewatchthis.ch
...
Worked for me, the whole plugin/addon was failing otherwise.
Your current file naming template for episodes is: 'S01E01.strm' .... this can lead to issues when exporting watched statuses using the addon from the forum. Currently the Export Watched Status addon exports the filename of all episode file names that have been watched and allows for importing using this list. When importing this will mark all episodes matching the file name from the watched.xml and this will mark all of the 1channel strm files as watched...
May I suggest this file name template: 'Show Name 1x01.strm'
There is a script error when trying to do anything in that section
When playing a video directly on 1Channel addon I get the episode thumbnail in OSD, which I guess is the way the addon was programed to behave. But when playing a 1Channel video via library integration I get no thumbnail, nor clearart logo
Had to change BASE URL to http://www.letmewatchthis.ch. to get it work
Using latest version from git repository gives the following errors when trying to play each source....
01:25:59 T:4032 NOTICE: 1Channel: Attempting to play url: http://www.putlocker.com/file/A05FC408085B1C60 01:25:59 T:4032 DEBUG: urlresolver: resolving using putlocker/sockshare plugin 01:26:04 T:4032 NOTICE: 1Channel: putlocker.com source failed. Trying next source... 01:26:04 T:4032 NOTICE: 1Channel: local variable 'listitem' referenced before assignment 01:26:04 T:4032 NOTICE: 1Channel: Attempting to play url: http://www.putlocker.com/file/0B65ECE9300A8461 01:26:04 T:4032 DEBUG: urlresolver: resolving using putlocker/sockshare plugin 01:26:06 T:4032 NOTICE: 1Channel: putlocker.com source failed. Trying next source... 01:26:06 T:4032 NOTICE: 1Channel: local variable 'listitem' referenced before assignment 01:26:06 T:4032 NOTICE: 1Channel: Attempting to play url: http://www.putlocker.com/file/0444F9D8C080B807 01:26:06 T:4032 DEBUG: urlresolver: resolving using putlocker/sockshare plugin 01:26:07 T:4032 NOTICE: 1Channel: putlocker.com source failed. Trying next source... 01:26:07 T:4032 NOTICE: 1Channel: local variable 'listitem' referenced before assignment 01:26:07 T:4032 NOTICE: 1Channel: Attempting to play url: http://www.putlocker.com/file/523B09392285A2B7 01:26:07 T:4032 DEBUG: urlresolver: resolving using putlocker/sockshare plugin 01:26:08 T:4032 NOTICE: 1Channel: putlocker.com source failed. Trying next source... 01:26:08 T:4032 NOTICE: 1Channel: local variable 'listitem' referenced before assignment 01:26:08 T:4032 NOTICE: 1Channel: Attempting to play url: http://www.putlocker.com/file/D57DD5DB25DFD876 01:26:08 T:4032 DEBUG: urlresolver: resolving using putlocker/sockshare plugin 01:26:10 T:4032 NOTICE: 1Channel: putlocker.com source failed. Trying next source... 01:26:10 T:4032 NOTICE: 1Channel: local variable 'listitem' referenced before assignment 01:26:10 T:4032 NOTICE: 1Channel: Attempting to play url: http://www.putlocker.com/file/43660F9BDB0753D2 01:26:10 T:4032 DEBUG: urlresolver: resolving using putlocker/sockshare plugin 01:26:11 T:4032 NOTICE: 1Channel: putlocker.com source failed. Trying next source... 01:26:11 T:4032 NOTICE: 1Channel: local variable 'listitem' referenced before assignment 01:26:11 T:4032 NOTICE: 1Channel: Attempting to play url: http://www.sockshare.com/file/C444D9676EE2ED02 01:26:11 T:4032 DEBUG: urlresolver: resolving using putlocker/sockshare plugin 01:26:13 T:4032 NOTICE: 1Channel: sockshare.com source failed. Trying next source... 01:26:13 T:4032 NOTICE: 1Channel: local variable 'listitem' referenced before assignment 01:26:13 T:4032 NOTICE: 1Channel: Attempting to play url: http://movpod.in/dr5qsvuncqhg 01:26:13 T:4032 DEBUG: urlresolver: resolving using movpod plugin 01:26:15 T:4032 NOTICE: 1Channel: movpod.in source failed. Trying next source... 01:26:15 T:4032 NOTICE: 1Channel: local variable 'listitem' referenced before assignment
It would be great if you could add support for using trakt.tv's watchlist (or better yet, custom list support too) ... This would be extremely useful as it will allow users to more easily add wanted movies and/or TV show subscriptions. All they would need to do is set up the list at trakt.tv and add wanted Movies/TV Shows to the list... you could set it up to check the user defined list at scheduled intervals. When your plugin finds a new entry on the list, it can just add the .strm file to the library (for movies) or if its a TV Show, add the subscription.
Another thought is the same plan, only using imdb.com watchlist or custom watchlists...
Error log indicates var season_meta referenced before assignment
I use favorites and "hide watched" to keep up to date with my tv shows. I thought this behavior worked before but isn't now.
Would it be possible to hide the season if all the available episodes have been watched? And if all the series episodes have been watched hide the series.
Then my favorites would only show what I haven't watched. Currently, I have to navigate into the series, then season to see if any episodes are unwatched.
http://www.xbmchub.com/forums/1channel-plugin/1666-library-integration.html#post12367
Setting library folders to network location causes them to be created on the desktop instead of remotely. So far only on OSX
Script Error in default.py:TVShowEpisodeList() when META_ON is true and imdbnum 0
23:43:16 T:3780 NOTICE: 1Channel: DUMP
23:43:16 T:3780 NOTICE: 1Channel: {'TVShowTitle': 'Richard Hammonds Crash Course ', 'cover_url': '', 'title': u'Episode 1 - Abrams Tank'}
23:43:16 T:3780 ERROR: Error Type: <type 'exceptions.KeyError'>
23:43:16 T:3780 ERROR: Error Contents: ('season',)
23:43:16 T:3780 ERROR: Traceback (most recent call last):
File "C:\Users\goodman\AppData\Roaming\XBMC\addons\plugin.video.1channel\default.py", line 1518, in
TVShowEpisodeList(title, season, imdbnum, tvdbnum)
File "C:\Users\goodman\AppData\Roaming\XBMC\addons\plugin.video.1channel\default.py", line 804, in TVShowEpisodeList
meta['title'] = format_tvshow_episode(meta)
File "C:\Users\goodman\AppData\Roaming\XBMC\addons\plugin.video.1channel\utils.py", line 32, in format_tvshow_episode
label = re.sub('{s}', str(info['season']), episode_format)
KeyError: ('season',)
The 'if META_ON and imdbnum' falls through and format_tvshow_episode(meta) is called when meta['season'] is null and an exception is thrown. Personally, I moved the filling in the meta defaults out of the if/except to before the if so ensure they were set first.
I setup superscription on some tv shows but when selecting "update subscriptions", I get a message saying "Resume from 20:59" / "Start from beginning".
I have selected both options. 1Channel says "Opening stream" but then nothing happens and eventually the dialog box disappears.
Is there a way to "reset" my subscriptions or skip this item:
Here is the logs:
10:37:02 T:140639643625216 NOTICE: metahandler: Attempting to retreive meta data for tvshow: The Killing
10:37:02 T:140638431102720 NOTICE: Thread Background Loader start, auto delete: false
10:37:02 T:140640159025024 NOTICE: Previous line repeats 1 times.
10:37:02 T:140640159025024 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.1channel/?play=True&mode=UpdateSubscriptions]
10:37:02 T:140639805454080 NOTICE: service.libraryautoupdate: update timers
10:38:15 T:140638688855808 NOTICE: Thread Background Loader start, auto delete: false
10:38:15 T:140638556694272 NOTICE: Thread Jobworker start, auto delete: true
I think is a bug, but trakt.tv scrobb only the tv series from 1channel plugin (xbmc)!
and
Don't work with movies!!!
It is a bug??
p.s. i speak with trakt.tv support and say to me , maybe its the problem of 1channel plugin!
use XBMC's alarm function instead of keeping a python thread alive just to sleep for 8hrs at time
I have metadata off and I've been getting script errors when accessing the show list and episode list. The following patch fixed the errors for me:
diff --git a/1Channel/default.py b/1Channel/default.py
index 0360e52..fba56bc 100644
--- a/1Channel/default.py
+++ b/1Channel/default.py
@@ -594,6 +594,7 @@ def GetFilteredResults(section=None, genre=None, letter=None, sort='alphabet', p
img = thumb
fanart = ''
meta['imdb_id'] = ''
+ meta['title'] = title
if META_ON:
# try:
@@ -777,6 +778,8 @@ def TVShowEpisodeList(ShowTitle, season, imdbnum, tvdbnum): #5000
else:
meta['cover_url'] = ''
meta['title'] = eptitle
+ meta['episode'] = epnum
+ meta['season'] = season
img = meta['cover_url']
meta['TVShowTitle'] = ShowTitle
Currently the shows that have been watched are not marked with a 'watched' icon.
I have seen other streaming addons that did, so I guess it's possible with media files not on disk.
All of a sudden the search on 1channel does not work.
Click search ->type in desired programme/film->goes to screen with " .. "
I can view programmes/films if I go to featured, latest release, a-z guide etc just can not seem to do a specific search for programme/film
Have disabled and uninstalled and re-installed and enabled
Have the tried versions 1.0 / 1.01 / master 1channel 1.02
Please help
The file /art/themes/Glossy_Black/#123.png needs to be renamed and the code to reflect the name change.
The XBMC installer can not figure out the # sign in both Windows and iOS. Simple as that. :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.