瀏覽代碼

darba versija

Ivars 7 年之前
父節點
當前提交
7548f5ddf0
共有 3 個檔案被更改,包括 102 行新增98 行删除
  1. 102
    96
      project.wpr
  2. 0
    1
      sources/SourceBase.py
  3. 0
    1
      sources/cinemalive.py

+ 102
- 96
project.wpr 查看文件

@@ -67,6 +67,10 @@ debug.breakpoints = {loc('iub.py'): {102: (0,
67 67
                                      404L: (0,
68 68
         None,
69 69
         1,
70
+        0)},
71
+                     loc('sources/cinemalive.py'): {71L: (0,
72
+        None,
73
+        1,
70 74
         0)},
71 75
                      loc('sources/ltc.py'): {102L: (0,
72 76
         None,
@@ -722,18 +726,18 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
722 726
         'top-node': [('generic attribute',
723 727
                       loc('../../../../../Python27/Lib/site-packages/PIL/Image.py'),
724 728
                       'ADAPTIVE')]},
725
-        loc('unknown:<untitled> #3'): {'column-widths': [1.0],
729
+        loc('unknown:<untitled> #6'): {'column-widths': [1.0],
726 730
                                        'expanded-nodes': [],
727 731
                                        'selected-nodes': [],
728 732
                                        'top-node': None},
729
-        loc('unknown:<untitled> #6'): {'column-widths': [1.0],
730
-                                       'expanded-nodes': [],
733
+        loc('unknown:<untitled> #4'): {'expanded-nodes': [],
731 734
                                        'selected-nodes': [],
732 735
                                        'top-node': None},
733
-        loc('unknown:<untitled> #5'): {'expanded-nodes': [],
736
+        loc('unknown:<untitled> #5'): {'column-widths': [1.0],
737
+                                       'expanded-nodes': [],
734 738
                                        'selected-nodes': [],
735 739
                                        'top-node': None},
736
-        loc('unknown:<untitled> #4'): {'expanded-nodes': [],
740
+        loc('unknown:<untitled> #3'): {'expanded-nodes': [],
737 741
                                        'selected-nodes': [],
738 742
                                        'top-node': None}},
739 743
                                 'browse_mode': u'Current Module',
@@ -796,7 +800,7 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
796 800
                                        'fRegexFlags': 46,
797 801
                                        'fReplaceText': '',
798 802
                                        'fReverse': False,
799
-                                       'fSearchText': u'excep',
803
+                                       'fSearchText': u'i0',
800 804
                                        'fStartPos': 0,
801 805
                                        'fStyle': 'text',
802 806
                                        'fWholeWords': False,
@@ -870,36 +874,15 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
870 874
         -1,
871 875
         -1),
872 876
                        'attrib-starts': [],
873
-                       'first-line': 28L,
877
+                       'first-line': 0L,
874 878
                        'folded-linenos': [],
875
-                       'history': {u'file:C:/Data/Programming/enigma2/PlayStream2/content/sources/replay.py': ["r"\
876
-        ".find('<div class=\"visible-xs\">')\n",
877
-        'pring img\n',
878
-        'print img\n',
879
-        'i2\n',
880
-        'm\n',
881
-        "re.search('poster\":\"([^\"]+)\"', r, re.DOTALL)\n",
882
-        'url\n',
883
-        'url2\n',
884
-        'print url3\n',
885
-        'print url2\n',
886
-        "r.find('<div class=\"visible-xsx\">')\n",
887
-        'print m.group(1)\n',
888
-        'rr = m.group()1\n',
889
-        'rr = m.group(1)\n',
890
-        're.sub(rr,"<.+?>", " ")\n',
891
-        're.sub("<.+?>", " ", rr)\n',
892
-        'rrr = re.sub("<.+?>", " ", rr)\n',
893
-        're.sub("[\\t\\n]", " ", rrr)\n',
894
-        ' rr = re.sub("[\\t\\n]", " ", rr)\n',
895
-        'rr\n',
896
-        're.sub(" {2,100}", " ", rr)\n',
897
-        'print desc\n']},
879
+                       'history': {u'file:C:/Data/Programming/enigma2/PlayStream2/content/sources/cinemalive.py': ['u'\
880
+        'rl\n']},
898 881
                        'launch-id': None,
899
-                       'sel-line': 29L,
900
-                       'sel-line-start': 7804L,
901
-                       'selection_end': 7804L,
902
-                       'selection_start': 7804L,
882
+                       'sel-line': 1L,
883
+                       'sel-line-start': 5L,
884
+                       'selection_end': 42L,
885
+                       'selection_start': 6L,
903 886
                        'zoom': 0L}),
904 887
                      ('debug-watch',
905 888
                       'wide',
@@ -948,62 +931,6 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
948 931
         'primary_view_state': {'editor_states': ('horizontal',
949 932
         0.6463570515551769,
950 933
         ({'bookmarks': ([[loc('run.py'),
951
-                          {'attrib-starts': [('VideoInfo',
952
-        336),
953
-        ('VideoInfo.list_changed2',
954
-         503)],
955
-                           'first-line': 500L,
956
-                           'folded-linenos': [121L,
957
-        122L],
958
-                           'sel-line': 506L,
959
-                           'sel-line-start': 21239L,
960
-                           'selection_end': 21257L,
961
-                           'selection_start': 21256L,
962
-                           'zoom': 0L},
963
-                          1507485661.991],
964
-                         [loc('run.py'),
965
-                          {'attrib-starts': [('Main',
966
-        22),
967
-        ('Main.list_action',
968
-         105)],
969
-                           'first-line': 98L,
970
-                           'folded-linenos': [121L,
971
-        122L],
972
-                           'sel-line': 113L,
973
-                           'sel-line-start': 4576L,
974
-                           'selection_end': 4640L,
975
-                           'selection_start': 4604L,
976
-                           'zoom': 0L},
977
-                          1507485811.253],
978
-                         [loc('run.py'),
979
-                          {'attrib-starts': [('VideoInfo',
980
-        336),
981
-        ('VideoInfo.body',
982
-         363)],
983
-                           'first-line': 414L,
984
-                           'folded-linenos': [121L,
985
-        122L],
986
-                           'sel-line': 425L,
987
-                           'sel-line-start': 17361L,
988
-                           'selection_end': 17387L,
989
-                           'selection_start': 17387L,
990
-                           'zoom': 0L},
991
-                          1507486160.575],
992
-                         [loc('run.py'),
993
-                          {'attrib-starts': [('VideoInfo',
994
-        336),
995
-        ('VideoInfo.list_changed2',
996
-         504)],
997
-                           'first-line': 497L,
998
-                           'folded-linenos': [121L,
999
-        122L],
1000
-                           'sel-line': 505L,
1001
-                           'sel-line-start': 21244L,
1002
-                           'selection_end': 21282L,
1003
-                           'selection_start': 21282L,
1004
-                           'zoom': 0L},
1005
-                          1507487108.141],
1006
-                         [loc('run.py'),
1007 934
                           {'attrib-starts': [('Main',
1008 935
         22),
1009 936
         ('Main.list_action',
@@ -1209,9 +1136,58 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
1209 1136
                            'selection_end': 4443L,
1210 1137
                            'selection_start': 4443L,
1211 1138
                            'zoom': 0L},
1212
-                          1507528941.252]],
1139
+                          1507528941.252],
1140
+                         [loc('sources/replay.py'),
1141
+                          {'attrib-starts': [('Source',
1142
+        30),
1143
+        ('Source.get_content',
1144
+         41)],
1145
+                           'first-line': 236L,
1146
+                           'folded-linenos': [],
1147
+                           'sel-line': 248L,
1148
+                           'sel-line-start': 13008L,
1149
+                           'selection_end': 13008L,
1150
+                           'selection_start': 13008L,
1151
+                           'zoom': 0L},
1152
+                          1507825705.542],
1153
+                         [loc('sources/cinemalive.py'),
1154
+                          {'attrib-starts': [],
1155
+                           'first-line': 197L,
1156
+                           'folded-linenos': [],
1157
+                           'sel-line': 202L,
1158
+                           'sel-line-start': 9589L,
1159
+                           'selection_end': 9603L,
1160
+                           'selection_start': 9603L,
1161
+                           'zoom': 0L},
1162
+                          1507825711.778],
1163
+                         [loc('sources/cinemalive.py'),
1164
+                          {'attrib-starts': [('Source',
1165
+        30),
1166
+        ('Source.get_content',
1167
+         53)],
1168
+                           'first-line': 62L,
1169
+                           'folded-linenos': [],
1170
+                           'sel-line': 70L,
1171
+                           'sel-line-start': 3090L,
1172
+                           'selection_end': 3090L,
1173
+                           'selection_start': 3090L,
1174
+                           'zoom': 0L},
1175
+                          1507825753.372],
1176
+                         [loc('sources/SourceBase.py'),
1177
+                          {'attrib-starts': [('SourceBase',
1178
+        33),
1179
+        ('SourceBase.call',
1180
+         105)],
1181
+                           'first-line': 104L,
1182
+                           'folded-linenos': [],
1183
+                           'sel-line': 109L,
1184
+                           'sel-line-start': 3889L,
1185
+                           'selection_end': 3889L,
1186
+                           'selection_start': 3889L,
1187
+                           'zoom': 0L},
1188
+                          1507825801.417]],
1213 1189
                         20),
1214
-          'current-loc': loc('sources/replay.py'),
1190
+          'current-loc': loc('sources/cinemalive.py'),
1215 1191
           'editor-state-list': [(loc('ContentSources.py'),
1216 1192
                                  {'attrib-starts': [('ContentSources',
1217 1193
         16),
@@ -1293,8 +1269,32 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
1293 1269
                                   'sel-line-start': 66037L,
1294 1270
                                   'selection_end': 66037L,
1295 1271
                                   'selection_start': 66037L,
1272
+                                  'zoom': 0L}),
1273
+                                (loc('sources/cinemalive.py'),
1274
+                                 {'attrib-starts': [('Source',
1275
+        29),
1276
+        ('Source.get_content',
1277
+         52)],
1278
+                                  'first-line': 61L,
1279
+                                  'folded-linenos': [],
1280
+                                  'sel-line': 70L,
1281
+                                  'sel-line-start': 3133L,
1282
+                                  'selection_end': 3133L,
1283
+                                  'selection_start': 3133L,
1284
+                                  'zoom': 0L}),
1285
+                                (loc('sources/SourceBase.py'),
1286
+                                 {'attrib-starts': [('SourceBase',
1287
+        32),
1288
+        ('SourceBase.call',
1289
+         104)],
1290
+                                  'first-line': 103L,
1291
+                                  'folded-linenos': [],
1292
+                                  'sel-line': 108L,
1293
+                                  'sel-line-start': 3888L,
1294
+                                  'selection_end': 3888L,
1295
+                                  'selection_start': 3888L,
1296 1296
                                   'zoom': 0L})],
1297
-          'has-focus': True,
1297
+          'has-focus': False,
1298 1298
           'locked': False},
1299 1299
          [loc('ContentSources.py'),
1300 1300
           loc('sources/ltc.py'),
@@ -1302,7 +1302,9 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
1302 1302
           loc('run.py'),
1303 1303
           loc('../../../../../Python27/Lib/lib-tk/tkSimpleDialog.py'),
1304 1304
           loc('sources/replay.py'),
1305
-          loc('../../../../../Python27/Lib/lib-tk/Tkinter.py')]),
1305
+          loc('../../../../../Python27/Lib/lib-tk/Tkinter.py'),
1306
+          loc('sources/cinemalive.py'),
1307
+          loc('sources/SourceBase.py')]),
1306 1308
         ({'bookmarks': ([[loc('run.py'),
1307 1309
                           {'attrib-starts': [('Main',
1308 1310
         22),
@@ -1432,12 +1434,14 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
1432 1434
           'locked': False},
1433 1435
          [loc('run.py')])),
1434 1436
                                'open_files': [u'ContentSources.py',
1437
+        u'run.py',
1435 1438
         u'sources/ltc.py',
1436 1439
         u'util.py',
1437 1440
         u'../../../../../Python27/Lib/lib-tk/Tkinter.py',
1438 1441
         u'../../../../../Python27/Lib/lib-tk/tkSimpleDialog.py',
1439
-        u'run.py',
1440 1442
         u'sources/replay.py',
1443
+        u'sources/SourceBase.py',
1444
+        u'sources/cinemalive.py',
1441 1445
         u'run.py']},
1442 1446
         'saved_notebook_display': None,
1443 1447
         'split_percents': {0: 0.5261845386533666},
@@ -1453,7 +1457,9 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
1453 1457
                          1,
1454 1458
                          1806,
1455 1459
                          1089)}]}
1456
-guimgr.recent-documents = [loc('sources/replay.py'),
1460
+guimgr.recent-documents = [loc('sources/cinemalive.py'),
1461
+                           loc('sources/SourceBase.py'),
1462
+                           loc('sources/replay.py'),
1457 1463
                            loc('run.py'),
1458 1464
                            loc('../../../../../Python27/Lib/lib-tk/tkSimpleDialog.py'),
1459 1465
                            loc('sources/ltc.py'),

+ 0
- 1
sources/SourceBase.py 查看文件

@@ -13,7 +13,6 @@ import ssl
13 13
 if "_create_unverified_context" in dir(ssl):
14 14
     ssl._create_default_https_context = ssl._create_unverified_context
15 15
 
16
-
17 16
 try:
18 17
     from requests.packages.urllib3.exceptions import InsecureRequestWarning
19 18
     requests.packages.urllib3.disable_warnings(InsecureRequestWarning)

+ 0
- 1
sources/cinemalive.py 查看文件

@@ -23,7 +23,6 @@ if "_create_unverified_context" in dir(ssl):
23 23
 from resolver import resolve
24 24
 import util
25 25
 
26
-
27 26
 headers2dict = lambda  h: dict([l.strip().split(": ") for l in h.strip().splitlines()])
28 27
 import HTMLParser
29 28
 h = HTMLParser.HTMLParser()