Browse Source

darba versija

Ivars 7 years ago
parent
commit
1bb0296341
2 changed files with 133 additions and 152 deletions
  1. 131
    150
      project.wpr
  2. 2
    2
      sources/ltc.py

+ 131
- 150
project.wpr View File

@@ -907,101 +907,16 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
907 907
                        'selection_end': 174L,
908 908
                        'selection_start': 174L,
909 909
                        'zoom': 0L})],
910
-        'primary_view_state': {'editor_states': ({'bookmarks': ([[loc('ContentSources.py'),
911
-        {'attrib-starts': [('ContentSources',
912
-                            16),
913
-                           ('ContentSources.__init__',
914
-                            20)],
915
-         'first-line': 29L,
910
+        'primary_view_state': {'editor_states': ({'bookmarks': ([[loc('run.py'),
911
+        {'attrib-starts': [],
912
+         'first-line': 537L,
916 913
          'folded-linenos': [],
917
-         'sel-line': 38L,
918
-         'sel-line-start': 1556L,
919
-         'selection_end': 1556L,
920
-         'selection_start': 1556L,
914
+         'sel-line': 548L,
915
+         'sel-line-start': 21051L,
916
+         'selection_end': 21072L,
917
+         'selection_start': 21072L,
921 918
          'zoom': 0L},
922
-        1507139070.901],
923
-        [loc('run.py'),
924
-         {'attrib-starts': [],
925
-          'first-line': 539L,
926
-          'folded-linenos': [],
927
-          'sel-line': 547L,
928
-          'sel-line-start': 21031L,
929
-          'selection_end': 21031L,
930
-          'selection_start': 21031L,
931
-          'zoom': 0L},
932
-         1507139107.638],
933
-        [loc('ContentSources.py'),
934
-         {'attrib-starts': [('ContentSources',
935
-                             16),
936
-                            ('ContentSources.__init__',
937
-                             20)],
938
-          'first-line': 29L,
939
-          'folded-linenos': [],
940
-          'sel-line': 38L,
941
-          'sel-line-start': 1556L,
942
-          'selection_end': 1556L,
943
-          'selection_start': 1556L,
944
-          'zoom': 0L},
945
-         1507139120.776],
946
-        [loc('run.py'),
947
-         {'attrib-starts': [],
948
-          'first-line': 537L,
949
-          'folded-linenos': [],
950
-          'sel-line': 548L,
951
-          'sel-line-start': 21051L,
952
-          'selection_end': 21072L,
953
-          'selection_start': 21072L,
954
-          'zoom': 0L},
955
-         1507139183.154],
956
-        [loc('ContentSources.py'),
957
-         {'attrib-starts': [('ContentSources',
958
-                             16),
959
-                            ('ContentSources.__init__',
960
-                             20)],
961
-          'first-line': 29L,
962
-          'folded-linenos': [],
963
-          'sel-line': 38L,
964
-          'sel-line-start': 1556L,
965
-          'selection_end': 1556L,
966
-          'selection_start': 1556L,
967
-          'zoom': 0L},
968
-         1507139191.654],
969
-        [loc('sources/config.py'),
970
-         {'attrib-starts': [('Source',
971
-                             12),
972
-                            ('Source.__init__',
973
-                             14)],
974
-          'first-line': 10L,
975
-          'folded-linenos': [],
976
-          'sel-line': 16L,
977
-          'sel-line-start': 546L,
978
-          'selection_end': 546L,
979
-          'selection_start': 546L,
980
-          'zoom': 0L},
981
-         1507139201.651],
982
-        [loc('ContentSources.py'),
983
-         {'attrib-starts': [('ContentSources',
984
-                             16),
985
-                            ('ContentSources.__init__',
986
-                             20)],
987
-          'first-line': 29L,
988
-          'folded-linenos': [],
989
-          'sel-line': 38L,
990
-          'sel-line-start': 1556L,
991
-          'selection_end': 1630L,
992
-          'selection_start': 1630L,
993
-          'zoom': 0L},
994
-         1507139390.596],
995
-        [loc('run.py'),
996
-         {'attrib-starts': [],
997
-          'first-line': 537L,
998
-          'folded-linenos': [],
999
-          'sel-line': 548L,
1000
-          'sel-line-start': 21051L,
1001
-          'selection_end': 21072L,
1002
-          'selection_start': 21072L,
1003
-          'zoom': 0L},
1004
-         1507139396.418],
919
+        1507139396.418],
1005 920
         [loc('ContentSources.py'),
1006 921
          {'attrib-starts': [('ContentSources',
1007 922
                              16),
@@ -1139,9 +1054,97 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
1139 1054
           'selection_end': 1813L,
1140 1055
           'selection_start': 1813L,
1141 1056
           'zoom': 0L},
1142
-         1507141006.36]],
1057
+         1507141006.36],
1058
+        [loc('run.py'),
1059
+         {'attrib-starts': [],
1060
+          'first-line': 537L,
1061
+          'folded-linenos': [],
1062
+          'sel-line': 544L,
1063
+          'sel-line-start': 20857L,
1064
+          'selection_end': 20989L,
1065
+          'selection_start': 20857L,
1066
+          'zoom': 0L},
1067
+         1507141011.515],
1068
+        [loc('ContentSources.py'),
1069
+         {'attrib-starts': [('ContentSources',
1070
+                             16),
1071
+                            ('ContentSources.__init__',
1072
+                             20)],
1073
+          'first-line': 33L,
1074
+          'folded-linenos': [],
1075
+          'sel-line': 38L,
1076
+          'sel-line-start': 1556L,
1077
+          'selection_end': 1556L,
1078
+          'selection_start': 1556L,
1079
+          'zoom': 0L},
1080
+         1507146273.096],
1081
+        [loc('test_sources2.py'),
1082
+         {'attrib-starts': [('Main',
1083
+                             12),
1084
+                            ('Main.initUI',
1085
+                             30)],
1086
+          'first-line': 39L,
1087
+          'folded-linenos': [],
1088
+          'sel-line': 41L,
1089
+          'sel-line-start': 1171L,
1090
+          'selection_end': 1857L,
1091
+          'selection_start': 1171L,
1092
+          'zoom': 0L},
1093
+         1507146273.708],
1094
+        [loc('ContentSources.py'),
1095
+         {'attrib-starts': [('ContentSources',
1096
+                             16),
1097
+                            ('ContentSources.__init__',
1098
+                             20)],
1099
+          'first-line': 33L,
1100
+          'folded-linenos': [],
1101
+          'sel-line': 38L,
1102
+          'sel-line-start': 1556L,
1103
+          'selection_end': 1556L,
1104
+          'selection_start': 1556L,
1105
+          'zoom': 0L},
1106
+         1507146275.209],
1107
+        [loc('sources/euronews.py'),
1108
+         {'attrib-starts': [('Source',
1109
+                             26),
1110
+                            ('Source.__init__',
1111
+                             28)],
1112
+          'first-line': 19L,
1113
+          'folded-linenos': [],
1114
+          'sel-line': 31L,
1115
+          'sel-line-start': 919L,
1116
+          'selection_end': 951L,
1117
+          'selection_start': 951L,
1118
+          'zoom': 0L},
1119
+         1507146275.803],
1120
+        [loc('ContentSources.py'),
1121
+         {'attrib-starts': [('ContentSources',
1122
+                             16),
1123
+                            ('ContentSources.__init__',
1124
+                             20)],
1125
+          'first-line': 33L,
1126
+          'folded-linenos': [],
1127
+          'sel-line': 38L,
1128
+          'sel-line-start': 1556L,
1129
+          'selection_end': 1556L,
1130
+          'selection_start': 1556L,
1131
+          'zoom': 0L},
1132
+         1507146277.883],
1133
+        [loc('sources/SourceBase.py'),
1134
+         {'attrib-starts': [('SourceBase',
1135
+                             33),
1136
+                            ('SourceBase.get_streams',
1137
+                             62)],
1138
+          'first-line': 54L,
1139
+          'folded-linenos': [],
1140
+          'sel-line': 62L,
1141
+          'sel-line-start': 1841L,
1142
+          'selection_end': 1860L,
1143
+          'selection_start': 1849L,
1144
+          'zoom': 0L},
1145
+         1507146278.448]],
1143 1146
         20),
1144
-        'current-loc': loc('run.py'),
1147
+        'current-loc': loc('ContentSources.py'),
1145 1148
         'editor-state-list': [(loc('ContentSources.py'),
1146 1149
                                {'attrib-starts': [('ContentSources',
1147 1150
         16),
@@ -1149,22 +1152,10 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
1149 1152
          20)],
1150 1153
                                 'first-line': 33L,
1151 1154
                                 'folded-linenos': [],
1152
-                                'sel-line': 43L,
1153
-                                'sel-line-start': 1789L,
1154
-                                'selection_end': 1813L,
1155
-                                'selection_start': 1813L,
1156
-                                'zoom': 0L}),
1157
-                              (loc('sources/euronews.py'),
1158
-                               {'attrib-starts': [('Source',
1159
-        26),
1160
-        ('Source.__init__',
1161
-         28)],
1162
-                                'first-line': 19L,
1163
-                                'folded-linenos': [],
1164
-                                'sel-line': 31L,
1165
-                                'sel-line-start': 919L,
1166
-                                'selection_end': 951L,
1167
-                                'selection_start': 951L,
1155
+                                'sel-line': 38L,
1156
+                                'sel-line-start': 1556L,
1157
+                                'selection_end': 1556L,
1158
+                                'selection_start': 1556L,
1168 1159
                                 'zoom': 0L}),
1169 1160
                               (loc('sources/ltc.py'),
1170 1161
                                {'attrib-starts': [('Source',
@@ -1178,18 +1169,6 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
1178 1169
                                 'selection_end': 37268L,
1179 1170
                                 'selection_start': 37260L,
1180 1171
                                 'zoom': 0L}),
1181
-                              (loc('test_sources2.py'),
1182
-                               {'attrib-starts': [('Main',
1183
-        12),
1184
-        ('Main.initUI',
1185
-         30)],
1186
-                                'first-line': 39L,
1187
-                                'folded-linenos': [],
1188
-                                'sel-line': 41L,
1189
-                                'sel-line-start': 1171L,
1190
-                                'selection_end': 1857L,
1191
-                                'selection_start': 1171L,
1192
-                                'zoom': 0L}),
1193 1172
                               (loc('../../../../../Python27/Lib/lib-tk/tkSimpleDialog.py'),
1194 1173
                                {'attrib-starts': [('Dialog',
1195 1174
         29),
@@ -1245,18 +1224,6 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
1245 1224
                                 'selection_end': 5306L,
1246 1225
                                 'selection_start': 5306L,
1247 1226
                                 'zoom': 0L}),
1248
-                              (loc('sources/SourceBase.py'),
1249
-                               {'attrib-starts': [('SourceBase',
1250
-        33),
1251
-        ('SourceBase.get_streams',
1252
-         62)],
1253
-                                'first-line': 54L,
1254
-                                'folded-linenos': [],
1255
-                                'sel-line': 62L,
1256
-                                'sel-line-start': 1841L,
1257
-                                'selection_end': 1860L,
1258
-                                'selection_start': 1849L,
1259
-                                'zoom': 0L}),
1260 1227
                               (loc('sources/iplayer.py'),
1261 1228
                                {'attrib-starts': [('Source',
1262 1229
         27),
@@ -1296,31 +1263,25 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
1296 1263
         'has-focus': True,
1297 1264
         'locked': False},
1298 1265
         [loc('ContentSources.py'),
1299
-         loc('sources/euronews.py'),
1300 1266
          loc('sources/ltc.py'),
1301
-         loc('test_sources2.py'),
1302 1267
          loc('../../../../../Python27/Lib/lib-tk/tkSimpleDialog.py'),
1303 1268
          loc('util.py'),
1304 1269
          loc('sources/filmix.py'),
1305 1270
          loc('run.py'),
1306 1271
          loc('sources/replay.py'),
1307
-         loc('sources/SourceBase.py'),
1308 1272
          loc('sources/iplayer.py'),
1309 1273
          loc('sources/cinemalive.py'),
1310 1274
          loc('sources/config.py')]),
1311
-                               'open_files': [u'sources/SourceBase.py',
1312
-        u'sources/euronews.py',
1313
-        u'sources/filmix.py',
1275
+                               'open_files': [u'sources/filmix.py',
1314 1276
         u'sources/iplayer.py',
1315 1277
         u'sources/ltc.py',
1316 1278
         u'sources/replay.py',
1317
-        u'test_sources2.py',
1318 1279
         u'util.py',
1319 1280
         u'../../../../../Python27/Lib/lib-tk/tkSimpleDialog.py',
1320 1281
         u'sources/cinemalive.py',
1321 1282
         u'sources/config.py',
1322
-        u'ContentSources.py',
1323
-        u'run.py']},
1283
+        u'run.py',
1284
+        u'ContentSources.py']},
1324 1285
         'saved_notebook_display': None,
1325 1286
         'split_percents': {0: 0.4352047277332208},
1326 1287
         'splits': 2,
@@ -1335,19 +1296,16 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
1335 1296
                          0,
1336 1297
                          2434,
1337 1298
                          1440)}]}
1338
-guimgr.recent-documents = [loc('run.py'),
1339
-                           loc('ContentSources.py'),
1299
+guimgr.recent-documents = [loc('ContentSources.py'),
1300
+                           loc('run.py'),
1340 1301
                            loc('sources/config.py'),
1341 1302
                            loc('sources/cinemalive.py'),
1342 1303
                            loc('../../../../../Python27/Lib/lib-tk/tkSimpleDialog.py'),
1343 1304
                            loc('sources/filmix.py'),
1344
-                           loc('test_sources2.py'),
1345 1305
                            loc('sources/replay.py'),
1346 1306
                            loc('sources/ltc.py'),
1347 1307
                            loc('sources/iplayer.py'),
1348
-                           loc('util.py'),
1349
-                           loc('sources/SourceBase.py'),
1350
-                           loc('sources/euronews.py')]
1308
+                           loc('util.py')]
1351 1309
 guimgr.visual-state = {loc('../../../Python25/Lib/BeautifulSoup.py'): {'attr'\
1352 1310
         'ib-starts': [('NavigableString',
1353 1311
                        354),
@@ -1527,6 +1485,18 @@ guimgr.visual-state = {loc('../../../Python25/Lib/BeautifulSoup.py'): {'attr'\
1527 1485
                                        'selection_end': 1804L,
1528 1486
                                        'selection_start': 1804L,
1529 1487
                                        'zoom': 0L},
1488
+                       loc('sources/SourceBase.py'): {'attrib-starts': [('So'\
1489
+        'urceBase',
1490
+        33),
1491
+        ('SourceBase.get_streams',
1492
+         62)],
1493
+        'first-line': 54L,
1494
+        'folded-linenos': [],
1495
+        'sel-line': 62L,
1496
+        'sel-line-start': 1841L,
1497
+        'selection_end': 1860L,
1498
+        'selection_start': 1849L,
1499
+        'zoom': 0L},
1530 1500
                        loc('sources/cinemalive.py'): {'attrib-starts': [],
1531 1501
         'first-line': 185L,
1532 1502
         'folded-linenos': [],
@@ -1698,6 +1668,17 @@ guimgr.visual-state = {loc('../../../Python25/Lib/BeautifulSoup.py'): {'attr'\
1698 1668
         'sel-line-start': 403L,
1699 1669
         'selection_end': 429L,
1700 1670
         'selection_start': 424L,
1671
+        'zoom': 0L},
1672
+                       loc('test_sources2.py'): {'attrib-starts': [('Main',
1673
+        12),
1674
+        ('Main.initUI',
1675
+         30)],
1676
+        'first-line': 39L,
1677
+        'folded-linenos': [],
1678
+        'sel-line': 41L,
1679
+        'sel-line-start': 1171L,
1680
+        'selection_end': 1857L,
1681
+        'selection_start': 1171L,
1701 1682
         'zoom': 0L},
1702 1683
                        loc('../untitled-1.py'): {'attrib-starts': [],
1703 1684
         'first-line': 0,

+ 2
- 2
sources/ltc.py View File

@@ -52,8 +52,8 @@ Accept-Language: en-US,en;q=0.8
52 52
 
53 53
         self.channels = None
54 54
         ### specific service info ###
55
-        self.ch=[]
56
-        self.ch2=[]
55
+        self.ch = []
56
+        self.ch2 = []
57 57
         self.ch_id={}
58 58
         self.ch_id2={}
59 59
         self.ch_name={}