iCulture forum | iPhone, iPad,  iPod touch, Apple TV en iOS

iCulture forum | iPhone, iPad, iPod touch, Apple TV en iOS (https://forum.iculture.nl/)
-   Apple TV - 2e generatie en 3e generatie (https://forum.iculture.nl/f134/apple-tv/f136/apple-tv-2e-generatie-3e-generatie/)
-   -   Ondertiteling kwijt in Frodo - 1Channel? - FIX!! (https://forum.iculture.nl/f134/apple-tv/f136/apple-tv-2e-generatie-3e-generatie/133756-ondertiteling-kwijt-frodo-1channel-fix.html)

misa 22-01-13 22:59

Ondertiteling kwijt in Frodo - 1Channel? - FIX!!
 
Onderstaande fix gevonden:

Ok guys (and gals ofcourse), I too was having issues with the 1channel plugin in combination with the subtitle plugin. As nobody is currently maintaining the 1channel code (as far as I know) I just went ahead and fixed it myself.


Files can now be downloaded from github (you only need playback.py and default.py):
This version fixes subtitles and resume playback
https://github.com/Vlemert/1Channel/...resumeplayback
This version contains an additional commit from blizzard2 which improves performance on raspberry pi's (I'd use this one)
https://github.com/Vlemert/1Channel/tree/current_build



The 1channel kinda kills some other stuff while in playback. It keeps a thread locked and the subtitles plugin wants to use the same thread (my best guess). Because of this, the subtitles will not respond until you end playback, at which point it will detect that there is no video playing (duh you just ended playback).


tldr;
I am not sure how/if I can redistribute the fixed code, but here are the instructions to fix it manually yourself:

Just in case: I am not responsible for anything you mess up while folowing these steps. Please do read the notes at the bottom
1. Locate the xbmc addon folder (usually in %appdata%/Roaming/XBMC/addons/
2. There is a folder 'plugin.video.1channel' open this
3. among other files you will find 'default.py' and 'playback.py'
4. In default, edit row nr 374: remove '.isSet()'
5. In playback, edit:
- row 56 should read: 'self._playbackLock = True'
- delete row 57 entirely
- row 98 should read: 'self._playbackLock = False'
- row 139: again remove '.isSet()'

6. (OPTIONAL, see NOTE3 below)
in playback, edit row 82
'db = database.connect(DB)' should read 'db = database.connect(db_dir)'

7. Save the files
8. PROFIT!

NOTE: while editing the python scripts, DO NOT change anything other than what I said (no extra spaces, tabs etc). The plugin will break if you do!
NOTE2: if you don't know what you're doing, I'd suggest making a backup of the files just in case.
NOTE3: there is another bug in the script. It should ask to resume playback when you stopped a movie/show halfway through, but it doesn't. This is the fix.


While you guys try to fix it this way, I will create a fork and pull request on github, and maybe put the files up somewhere . Keep an eye on this thread.

Thakoer 23-01-13 13:08

Dank je wel misa werkt het bij wel dan ?
hoor van niet maar ja ik ben op Eden..blijf voorlopig maar op de raspberry kan ik het proberen...

misa 26-01-13 17:03

Werkt perfect

HeyRuub 27-01-13 11:44

Thanks, hier werkt het ook!

Thakoer 28-01-13 08:55

Werkt perfect op raspberry

Moeswa 08-02-13 18:41

Ik heb op 1 channel gewoon ondertiteling zonder iets te programmeren ... ik heb gewoon ondertiteling onder XBMC goed getunned ... dus eerst taal 2e en 3e taal .... en welke sites ... als ik nu gewoon op de middelste ronde knop ingedrukt hou komt er een menutje en klik ik de ballon aan en staan er 3 ondertitels klaar .... scroll ik naar rechts dan kan ik een andere site kiezen en dus ook nederlandse ondertitels!

Geert1976 12-02-13 06:15

@ Moeswa;

Ik heb nu XBMC op mn iPad....Alles werkt tot nu toe naar behoren. Ik snap alleen niet hoe ik NL-ondertitels (add on?) moet krijgen bij de films/series van bijvoorbeeld 1channel. Heb een en ander opgezocht, maar kom er niet uit.

Zou jij kunnen uitleggen hoe ik dat voor elkaar kan krijgen? Zou je erg dankbaar zijn!

EDIT:

na een beetje puzzelen is het me gelukt! :))

Maar ik krijg nog vaak script error plug in. Iemand hier nog tips voor hoe dit op te lossen? thanks!

maltje 18-02-13 10:36

Ik start xmbc,ga naar 1 channel ,start film maar Ik krijg geen ondertitel keuze bij zowel "opensubtitels" als bij "ondertitel"
Zijn er nog andere voor Nederlands ondertitels?

Mvg

Thakoer 18-02-13 13:02

de popup krijg je die dan wel ?
Want als er geen ondertitel voor die films niet beschikbaar krijg je ook geen resultaten.

maltje 18-02-13 16:29

Citaat:

Oorspronkelijk geplaatst door Thakoer (Bericht 879387)
de popup krijg je die dan wel ?
Want als er geen ondertitel voor die films niet beschikbaar krijg je ook geen resultaten.

Nee ik krijg geen enkele ondertitel te zien.

Mvg


Alle tijden zijn GMT +2. Het is nu 13:21.