Browse Source

https replay

Ivars 6 years ago
parent
commit
596fa4b4d4
2 changed files with 63 additions and 79 deletions
  1. 62
    78
      project.wpr
  2. 1
    1
      sources/replay.py

+ 62
- 78
project.wpr View File

@@ -871,9 +871,9 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
871 871
                                        'fMatchCase': False,
872 872
                                        'fOmitBinary': True,
873 873
                                        'fRegexFlags': 46,
874
-                                       'fReplaceText': u'https://replay.lsm.lv',
874
+                                       'fReplaceText': u'https://ltv.lsm.lv',
875 875
                                        'fReverse': False,
876
-                                       'fSearchText': u'http://replay.lsm.lv',
876
+                                       'fSearchText': u'http://ltv.lsm.lv',
877 877
                                        'fStartPos': 0,
878 878
                                        'fStyle': 'text',
879 879
                                        'fWholeWords': False,
@@ -1001,76 +1001,34 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
1001 1001
                        'selection_end': 174L,
1002 1002
                        'selection_start': 174L,
1003 1003
                        'zoom': 0L})],
1004
-        'primary_view_state': {'editor_states': ({'bookmarks': ([[loc('run.py'),
1005
-        {'attrib-starts': [('Main',
1006
-                            22),
1007
-                           ('Main.list_action',
1008
-                            106)],
1009
-         'first-line': 120L,
1010
-         'folded-linenos': [],
1011
-         'sel-line': 121L,
1012
-         'sel-line-start': 4809L,
1013
-         'selection_end': 4832L,
1014
-         'selection_start': 4832L,
1004
+        'primary_view_state': {'editor_states': ({'bookmarks': ([[loc('sources/ltc.py'),
1005
+        {'attrib-starts': [('Source',
1006
+                            26),
1007
+                           ('Source.get_content',
1008
+                            78)],
1009
+         'first-line': 88L,
1010
+         'folded-linenos': [131L,
1011
+                            160L,
1012
+                            170L,
1013
+                            183L,
1014
+                            220L,
1015
+                            231L,
1016
+                            257L,
1017
+                            276L,
1018
+                            295L,
1019
+                            319L,
1020
+                            349L,
1021
+                            350L,
1022
+                            367L,
1023
+                            398L,
1024
+                            411L,
1025
+                            525L],
1026
+         'sel-line': 97L,
1027
+         'sel-line-start': 4220L,
1028
+         'selection_end': 4322L,
1029
+         'selection_start': 4322L,
1015 1030
          'zoom': 0L},
1016
-        1523343765.139],
1017
-        [loc('sources/ltc.py'),
1018
-         {'attrib-starts': [('Source',
1019
-                             26),
1020
-                            ('Source.get_content',
1021
-                             78)],
1022
-          'first-line': 113L,
1023
-          'folded-linenos': [85L,
1024
-                             130L,
1025
-                             159L,
1026
-                             169L,
1027
-                             182L,
1028
-                             219L,
1029
-                             230L,
1030
-                             256L,
1031
-                             275L,
1032
-                             294L,
1033
-                             318L,
1034
-                             348L,
1035
-                             349L,
1036
-                             366L,
1037
-                             397L,
1038
-                             410L,
1039
-                             524L],
1040
-          'sel-line': 123L,
1041
-          'sel-line-start': 5809L,
1042
-          'selection_end': 5846L,
1043
-          'selection_start': 5846L,
1044
-          'zoom': 0L},
1045
-         1523343770.158],
1046
-        [loc('sources/ltc.py'),
1047
-         {'attrib-starts': [('Source',
1048
-                             26),
1049
-                            ('Source.get_content',
1050
-                             78)],
1051
-          'first-line': 88L,
1052
-          'folded-linenos': [131L,
1053
-                             160L,
1054
-                             170L,
1055
-                             183L,
1056
-                             220L,
1057
-                             231L,
1058
-                             257L,
1059
-                             276L,
1060
-                             295L,
1061
-                             319L,
1062
-                             349L,
1063
-                             350L,
1064
-                             367L,
1065
-                             398L,
1066
-                             411L,
1067
-                             525L],
1068
-          'sel-line': 97L,
1069
-          'sel-line-start': 4220L,
1070
-          'selection_end': 4322L,
1071
-          'selection_start': 4322L,
1072
-          'zoom': 0L},
1073
-         1523348312.767],
1031
+        1523348312.767],
1074 1032
         [loc('sources/ltc.py'),
1075 1033
          {'attrib-starts': [('Source',
1076 1034
                              26),
@@ -1312,7 +1270,30 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
1312 1270
           'selection_end': 381L,
1313 1271
           'selection_start': 381L,
1314 1272
           'zoom': 0L},
1315
-         1523808605.094]],
1273
+         1523808605.094],
1274
+        [loc('sources/replay.py'),
1275
+         {'attrib-starts': [],
1276
+          'first-line': 18L,
1277
+          'folded-linenos': [],
1278
+          'sel-line': 20L,
1279
+          'sel-line-start': 584L,
1280
+          'selection_end': 595L,
1281
+          'selection_start': 595L,
1282
+          'zoom': 0L},
1283
+         1523810346.475],
1284
+        [loc('sources/replay.py'),
1285
+         {'attrib-starts': [('Source',
1286
+                             31),
1287
+                            ('Source.get_content',
1288
+                             42)],
1289
+          'first-line': 149L,
1290
+          'folded-linenos': [],
1291
+          'sel-line': 156L,
1292
+          'sel-line-start': 7535L,
1293
+          'selection_end': 7565L,
1294
+          'selection_start': 7565L,
1295
+          'zoom': 0L},
1296
+         1523810358.709]],
1316 1297
         20),
1317 1298
         'current-loc': loc('sources/replay.py'),
1318 1299
         'editor-state-list': [(loc('run.py'),
@@ -1377,13 +1358,16 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
1377 1358
                                 'selection_start': 4237L,
1378 1359
                                 'zoom': 0L}),
1379 1360
                               (loc('sources/replay.py'),
1380
-                               {'attrib-starts': [],
1381
-                                'first-line': 18L,
1361
+                               {'attrib-starts': [('Source',
1362
+        31),
1363
+        ('Source.get_content',
1364
+         42)],
1365
+                                'first-line': 149L,
1382 1366
                                 'folded-linenos': [],
1383
-                                'sel-line': 28L,
1384
-                                'sel-line-start': 926L,
1385
-                                'selection_end': 953L,
1386
-                                'selection_start': 953L,
1367
+                                'sel-line': 159L,
1368
+                                'sel-line-start': 7711L,
1369
+                                'selection_end': 7752L,
1370
+                                'selection_start': 7735L,
1387 1371
                                 'zoom': 0L}),
1388 1372
                               (loc('sources/lmt.py'),
1389 1373
                                {'attrib-starts': [],

+ 1
- 1
sources/replay.py View File

@@ -157,7 +157,7 @@ class Source(SourceBase):
157 157
                     raise Exception("No stream found")
158 158
                 url = m.group(1).replace('\\/', "/")
159 159
                 m = re.search('poster":"([^"]+)"', r, re.DOTALL)
160
-                img =  "http://ltv.lsm.lv" + m.group(1).replace("\\","") if m else ""
160
+                img =  "https://ltv.lsm.lv" + m.group(1).replace("\\","") if m else ""
161 161
 
162 162
                 r = self._http_request(url,headers=headers)
163 163
                 m = re.search('"([^"]+m3u8[^"]+)"', r)