-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mod for IPTV autotimers #178
Conversation
Quick mod to set timers in autotimer for IPTV channels. Mod required as serviceref doesn't include IPTV url
if not self.haveCachedServiceList: | ||
print("[AutoTimerIPTVMod] Getting full service list") | ||
# Get all bouquets | ||
bouquetlist = [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Get all bouquets is much easier:
serviceHandler = eServiceCenter.getInstance()
services = serviceHandler.list(eServiceReference('1:134:1:0:0:0:0:0:0:0:FROM BOUQUET "bouquets.tv" ORDER BY bouquet'))
bouquets = services and services.getContent("SN", True)
Many thanks. As someone new to this I was just reusing the code below that already exists in this file:
|
|
||
# Get all services | ||
mask = (eServiceReference.isMarker | eServiceReference.isDirectory) | ||
for name, bouquet in bouquetlist: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get all services from bouquet can be like this.
servicelist = ServiceList(eServiceReference(bRef))
slist = servicelist.getServicesAsList()
for sitem in slist:
sref = sitem[0]
Many thanks. Again, as someone new to this I was just reusing the code that already exists in this file... |
No problem. I can make some proposals, but i can't test because of no IPV on my box. |
Sorry I don't have any free iptv bouquets. A user here has tested it ok apart from a different distro issue |
A complication that from what I have seen on forums is that the scripts that are used by some people for IPTV services do not add the bouquet name to bouquets.tv They depend on unlinked bouquets to be enabled. |
In that case I'd say we would need to check for the service refs in any .tv files in /etc/enigma2 |
Added * to servicename so we know it's an IPTV channel
Just added a mod to the autotimerlist.py file to show the IPTV service name instead of 100.ts for example. |
Removed * addition to service name, instead (if you want) add to service name in .tv file to show IPTV
How is EPG being retrieved for these IPTV services. |
Using CrossEPG daily at 4am. IPTV bouquets are linked to DVB channel EPG using e-Channelizer. |
How does CrossEPG update an IPTV channel? |
IPTV bouquets are linked to DVB channel EPG using e-Channelizer. |
Please reset to master and make new commit. |
Update: your hole commit have no errors but you have the CachedServiceList twice. |
So this whole exercise is to fix a broken provider, and doesn't really add IPTV channels? |
The idea of @devait is ok for me and the implementation doesnt. |
I think there is a easier way to provide IPV EPG. |
Quick mod to set timers in autotimer for IPTV channels.
Mod required as serviceref doesn't include IPTV url