mirror of
https://github.com/DYefremov/DemonEditor.git
synced 2026-01-16 20:43:14 +01:00
m3u import fix
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
from app.eparser.bouquets import BqServiceType
|
||||
from . import Channel
|
||||
|
||||
|
||||
@@ -13,9 +14,9 @@ def parse_m3u(path):
|
||||
count += 1
|
||||
elif count == 1:
|
||||
count = 0
|
||||
fav_id = "IPTV:::1:0:1:0:0:0:0:0:0:0:{}:{}\n#DESCRIPTION: {}\n:::{}".format(
|
||||
fav_id = " 1:0:1:0:0:0:0:0:0:0:{}:{}\n#DESCRIPTION: {}\n".format(
|
||||
line.strip().replace(":", "%3a"), name, name, None)
|
||||
channels.append(Channel(*aggr[0:3], name, *aggr[0:3], "IPTV", *aggr, fav_id, None))
|
||||
channels.append(Channel(*aggr[0:3], name, *aggr[0:3], BqServiceType.IPTV.name, *aggr, fav_id, None))
|
||||
|
||||
return channels
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
<object class="GtkImage" id="image1">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="icon_name">insert-object</property>
|
||||
<property name="icon_name">emblem-downloads</property>
|
||||
</object>
|
||||
<object class="GtkImage" id="image4">
|
||||
<property name="visible">True</property>
|
||||
@@ -717,7 +717,7 @@
|
||||
<property name="opacity">0.93999999999999995</property>
|
||||
<property name="label" translatable="yes">IPTV</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="icon_name">insert-object</property>
|
||||
<property name="icon_name">emblem-downloads</property>
|
||||
<signal name="clicked" handler="on_import_m3u" swapped="no"/>
|
||||
</object>
|
||||
<packing>
|
||||
|
||||
Reference in New Issue
Block a user