Browse Source

darba versija

Ivars 7 years ago
parent
commit
7548f5ddf0
3 changed files with 102 additions and 98 deletions
  1. 102
    96
      project.wpr
  2. 0
    1
      sources/SourceBase.py
  3. 0
    1
      sources/cinemalive.py

+ 102
- 96
project.wpr View File

67
                                      404L: (0,
67
                                      404L: (0,
68
         None,
68
         None,
69
         1,
69
         1,
70
+        0)},
71
+                     loc('sources/cinemalive.py'): {71L: (0,
72
+        None,
73
+        1,
70
         0)},
74
         0)},
71
                      loc('sources/ltc.py'): {102L: (0,
75
                      loc('sources/ltc.py'): {102L: (0,
72
         None,
76
         None,
722
         'top-node': [('generic attribute',
726
         'top-node': [('generic attribute',
723
                       loc('../../../../../Python27/Lib/site-packages/PIL/Image.py'),
727
                       loc('../../../../../Python27/Lib/site-packages/PIL/Image.py'),
724
                       'ADAPTIVE')]},
728
                       'ADAPTIVE')]},
725
-        loc('unknown:<untitled> #3'): {'column-widths': [1.0],
729
+        loc('unknown:<untitled> #6'): {'column-widths': [1.0],
726
                                        'expanded-nodes': [],
730
                                        'expanded-nodes': [],
727
                                        'selected-nodes': [],
731
                                        'selected-nodes': [],
728
                                        'top-node': None},
732
                                        'top-node': None},
729
-        loc('unknown:<untitled> #6'): {'column-widths': [1.0],
730
-                                       'expanded-nodes': [],
733
+        loc('unknown:<untitled> #4'): {'expanded-nodes': [],
731
                                        'selected-nodes': [],
734
                                        'selected-nodes': [],
732
                                        'top-node': None},
735
                                        'top-node': None},
733
-        loc('unknown:<untitled> #5'): {'expanded-nodes': [],
736
+        loc('unknown:<untitled> #5'): {'column-widths': [1.0],
737
+                                       'expanded-nodes': [],
734
                                        'selected-nodes': [],
738
                                        'selected-nodes': [],
735
                                        'top-node': None},
739
                                        'top-node': None},
736
-        loc('unknown:<untitled> #4'): {'expanded-nodes': [],
740
+        loc('unknown:<untitled> #3'): {'expanded-nodes': [],
737
                                        'selected-nodes': [],
741
                                        'selected-nodes': [],
738
                                        'top-node': None}},
742
                                        'top-node': None}},
739
                                 'browse_mode': u'Current Module',
743
                                 'browse_mode': u'Current Module',
796
                                        'fRegexFlags': 46,
800
                                        'fRegexFlags': 46,
797
                                        'fReplaceText': '',
801
                                        'fReplaceText': '',
798
                                        'fReverse': False,
802
                                        'fReverse': False,
799
-                                       'fSearchText': u'excep',
803
+                                       'fSearchText': u'i0',
800
                                        'fStartPos': 0,
804
                                        'fStartPos': 0,
801
                                        'fStyle': 'text',
805
                                        'fStyle': 'text',
802
                                        'fWholeWords': False,
806
                                        'fWholeWords': False,
870
         -1,
874
         -1,
871
         -1),
875
         -1),
872
                        'attrib-starts': [],
876
                        'attrib-starts': [],
873
-                       'first-line': 28L,
877
+                       'first-line': 0L,
874
                        'folded-linenos': [],
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
                        'launch-id': None,
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
                        'zoom': 0L}),
886
                        'zoom': 0L}),
904
                      ('debug-watch',
887
                      ('debug-watch',
905
                       'wide',
888
                       'wide',
948
         'primary_view_state': {'editor_states': ('horizontal',
931
         'primary_view_state': {'editor_states': ('horizontal',
949
         0.6463570515551769,
932
         0.6463570515551769,
950
         ({'bookmarks': ([[loc('run.py'),
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
                           {'attrib-starts': [('Main',
934
                           {'attrib-starts': [('Main',
1008
         22),
935
         22),
1009
         ('Main.list_action',
936
         ('Main.list_action',
1209
                            'selection_end': 4443L,
1136
                            'selection_end': 4443L,
1210
                            'selection_start': 4443L,
1137
                            'selection_start': 4443L,
1211
                            'zoom': 0L},
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
                         20),
1189
                         20),
1214
-          'current-loc': loc('sources/replay.py'),
1190
+          'current-loc': loc('sources/cinemalive.py'),
1215
           'editor-state-list': [(loc('ContentSources.py'),
1191
           'editor-state-list': [(loc('ContentSources.py'),
1216
                                  {'attrib-starts': [('ContentSources',
1192
                                  {'attrib-starts': [('ContentSources',
1217
         16),
1193
         16),
1293
                                   'sel-line-start': 66037L,
1269
                                   'sel-line-start': 66037L,
1294
                                   'selection_end': 66037L,
1270
                                   'selection_end': 66037L,
1295
                                   'selection_start': 66037L,
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
                                   'zoom': 0L})],
1296
                                   'zoom': 0L})],
1297
-          'has-focus': True,
1297
+          'has-focus': False,
1298
           'locked': False},
1298
           'locked': False},
1299
          [loc('ContentSources.py'),
1299
          [loc('ContentSources.py'),
1300
           loc('sources/ltc.py'),
1300
           loc('sources/ltc.py'),
1302
           loc('run.py'),
1302
           loc('run.py'),
1303
           loc('../../../../../Python27/Lib/lib-tk/tkSimpleDialog.py'),
1303
           loc('../../../../../Python27/Lib/lib-tk/tkSimpleDialog.py'),
1304
           loc('sources/replay.py'),
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
         ({'bookmarks': ([[loc('run.py'),
1308
         ({'bookmarks': ([[loc('run.py'),
1307
                           {'attrib-starts': [('Main',
1309
                           {'attrib-starts': [('Main',
1308
         22),
1310
         22),
1432
           'locked': False},
1434
           'locked': False},
1433
          [loc('run.py')])),
1435
          [loc('run.py')])),
1434
                                'open_files': [u'ContentSources.py',
1436
                                'open_files': [u'ContentSources.py',
1437
+        u'run.py',
1435
         u'sources/ltc.py',
1438
         u'sources/ltc.py',
1436
         u'util.py',
1439
         u'util.py',
1437
         u'../../../../../Python27/Lib/lib-tk/Tkinter.py',
1440
         u'../../../../../Python27/Lib/lib-tk/Tkinter.py',
1438
         u'../../../../../Python27/Lib/lib-tk/tkSimpleDialog.py',
1441
         u'../../../../../Python27/Lib/lib-tk/tkSimpleDialog.py',
1439
-        u'run.py',
1440
         u'sources/replay.py',
1442
         u'sources/replay.py',
1443
+        u'sources/SourceBase.py',
1444
+        u'sources/cinemalive.py',
1441
         u'run.py']},
1445
         u'run.py']},
1442
         'saved_notebook_display': None,
1446
         'saved_notebook_display': None,
1443
         'split_percents': {0: 0.5261845386533666},
1447
         'split_percents': {0: 0.5261845386533666},
1453
                          1,
1457
                          1,
1454
                          1806,
1458
                          1806,
1455
                          1089)}]}
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
                            loc('run.py'),
1463
                            loc('run.py'),
1458
                            loc('../../../../../Python27/Lib/lib-tk/tkSimpleDialog.py'),
1464
                            loc('../../../../../Python27/Lib/lib-tk/tkSimpleDialog.py'),
1459
                            loc('sources/ltc.py'),
1465
                            loc('sources/ltc.py'),

+ 0
- 1
sources/SourceBase.py View File

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

+ 0
- 1
sources/cinemalive.py View File

23
 from resolver import resolve
23
 from resolver import resolve
24
 import util
24
 import util
25
 
25
 
26
-
27
 headers2dict = lambda  h: dict([l.strip().split(": ") for l in h.strip().splitlines()])
26
 headers2dict = lambda  h: dict([l.strip().split(": ") for l in h.strip().splitlines()])
28
 import HTMLParser
27
 import HTMLParser
29
 h = HTMLParser.HTMLParser()
28
 h = HTMLParser.HTMLParser()