Explorar el Código

Salabots tvplay (nerādīja kategorijas)

Ivars hace 5 años
padre
commit
792ff4aad1
Se han modificado 2 ficheros con 211 adiciones y 223 borrados
  1. 205
    221
      project.wpr
  2. 6
    2
      sources/tvplay.py

+ 205
- 221
project.wpr Ver fichero

@@ -191,11 +191,11 @@ debug.breakpoints = {loc('Downloader.py'): {94: (0,
191 191
             None,
192 192
             1,
193 193
             0)},
194
-                     loc('unknown:<untitled> #2'): {10: (0,
194
+                     loc('unknown:<untitled> #1'): {10: (0,
195 195
         None,
196 196
         1,
197 197
         0)},
198
-                     loc('unknown:<untitled> #1'): {2: (0,
198
+                     loc('unknown:<untitled> #2'): {2: (0,
199 199
         None,
200 200
         1,
201 201
         0)}}
@@ -833,18 +833,18 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
833 833
         'top-node': [('generic attribute',
834 834
                       loc('../../../../../Python27/lib/site-packages/PIL/Image.py'),
835 835
                       'ADAPTIVE')]},
836
-        loc('unknown:<untitled> #3'): {'column-widths': [1.0],
836
+        loc('unknown:<untitled> #5'): {'column-widths': [1.0],
837 837
                                        'expanded-nodes': [],
838 838
                                        'selected-nodes': [],
839 839
                                        'top-node': None},
840
-        loc('unknown:<untitled> #4'): {'expanded-nodes': [],
840
+        loc('unknown:<untitled> #6'): {'expanded-nodes': [],
841 841
                                        'selected-nodes': [],
842 842
                                        'top-node': None},
843
-        loc('unknown:<untitled> #5'): {'column-widths': [1.0],
844
-                                       'expanded-nodes': [],
843
+        loc('unknown:<untitled> #4'): {'expanded-nodes': [],
845 844
                                        'selected-nodes': [],
846 845
                                        'top-node': None},
847
-        loc('unknown:<untitled> #6'): {'expanded-nodes': [],
846
+        loc('unknown:<untitled> #3'): {'column-widths': [1.0],
847
+                                       'expanded-nodes': [],
848 848
                                        'selected-nodes': [],
849 849
                                        'top-node': None}},
850 850
                                 'browse_mode': u'Current Module',
@@ -871,7 +871,7 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
871 871
                                None)],
872 872
                  'primary_view_state': {'area': 'wide',
873 873
         'constraint': None,
874
-        'current_pages': [2,
874
+        'current_pages': [4,
875 875
                           0],
876 876
         'notebook_display': 'normal',
877 877
         'notebook_percent': 0.33947157726180943,
@@ -904,10 +904,10 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
904 904
                                        'fInterpretBackslashes': False,
905 905
                                        'fMatchCase': False,
906 906
                                        'fOmitBinary': True,
907
-                                       'fRegexFlags': 46,
907
+                                       'fRegexFlags': 42,
908 908
                                        'fReplaceText': u'filmix.co',
909 909
                                        'fReverse': False,
910
-                                       'fSearchText': u'title,',
910
+                                       'fSearchText': u' for item in r["content"]:',
911 911
                                        'fStartPos': 0,
912 912
                                        'fStyle': 'text',
913 913
                                        'fWholeWords': False,
@@ -933,7 +933,7 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
933 933
                                        'fInterpretBackslashes': False,
934 934
                                        'fMatchCase': False,
935 935
                                        'fOmitBinary': True,
936
-                                       'fRegexFlags': 46,
936
+                                       'fRegexFlags': 42,
937 937
                                        'fReplaceText': u'',
938 938
                                        'fReverse': False,
939 939
                                        'fSearchText': u'command',
@@ -981,24 +981,18 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
981 981
         -1,
982 982
         -1),
983 983
                        'attrib-starts': [],
984
-                       'first-line': 20L,
984
+                       'first-line': 11L,
985 985
                        'folded-linenos': [],
986
-                       'history': {u'file:C:/Data/Programming/enigma2/PlayStream2/content/sources/tvplay.py': ['z'\
987
-        'ip(*self.kategorijas)[0]\n',
988
-        'k\n',
989
-        'k[0]\n',
990
-        'qs\n',
991
-        'len(r["content"])\n',
992
-        'item["metadata"]["airDate"]\n',
993
-        'item["metadata"]["airDate"].split["T"][0]\n',
994
-        'item["metadata"]["airDate"].split("T")[0]\n',
995
-        'dd =  item["metadata"]["airDate"].split("T")[0].split("-")\n',
996
-        'dd\n']},
986
+                       'history': {u'file:C:/Data/Programming/enigma2/PlayStream2/content/sources/tvplay.py': ['d'\
987
+        'ata\n',
988
+        'r\n',
989
+        'url\n',
990
+        'print url\n']},
997 991
                        'launch-id': None,
998
-                       'sel-line': 26L,
999
-                       'sel-line-start': 670L,
1000
-                       'selection_end': 670L,
1001
-                       'selection_start': 670L,
992
+                       'sel-line': 13L,
993
+                       'sel-line-start': 503L,
994
+                       'selection_end': 624L,
995
+                       'selection_start': 503L,
1002 996
                        'zoom': 0L}),
1003 997
                      ('debug-watch',
1004 998
                       'wide',
@@ -1039,277 +1033,267 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
1039 1033
                        'attrib-starts': [],
1040 1034
                        'first-line': 0L,
1041 1035
                        'folded-linenos': [],
1042
-                       'history': {None: ['a = [("a", 1), ("b", 2)]\n',
1043
-        'a\n',
1044
-        'zip(a)\n',
1045
-        'zip(*a)\n',
1046
-        'zip(*a)[0]\n']},
1036
+                       'history': {},
1047 1037
                        'launch-id': None,
1048
-                       'sel-line': 11L,
1049
-                       'sel-line-start': 312L,
1050
-                       'selection_end': 312L,
1051
-                       'selection_start': 312L,
1038
+                       'sel-line': 2L,
1039
+                       'sel-line-start': 174L,
1040
+                       'selection_end': 174L,
1041
+                       'selection_start': 174L,
1052 1042
                        'zoom': 0L})],
1053 1043
         'primary_view_state': {'editor_states': ({'bookmarks': ([[loc('sources/tvplay.py'),
1054 1044
         {'attrib-starts': [('Source',
1055 1045
                             32),
1056 1046
                            ('Source.get_content',
1057
-                            52)],
1058
-         'first-line': 106L,
1047
+                            62)],
1048
+         'first-line': 117L,
1059 1049
          'folded-linenos': [],
1060
-         'sel-line': 113L,
1061
-         'sel-line-start': 5583L,
1062
-         'selection_end': 5583L,
1063
-         'selection_start': 5583L,
1050
+         'sel-line': 127L,
1051
+         'sel-line-start': 5744L,
1052
+         'selection_end': 5781L,
1053
+         'selection_start': 5755L,
1064 1054
          'zoom': 0L},
1065
-        1534770326.346],
1055
+        1538212621.538],
1066 1056
         [loc('sources/tvplay.py'),
1067 1057
          {'attrib-starts': [('Source',
1068 1058
                              32),
1069 1059
                             ('Source.get_content',
1070
-                             52)],
1071
-          'first-line': 90L,
1072
-          'folded-linenos': [120L],
1073
-          'sel-line': 100L,
1074
-          'sel-line-start': 4759L,
1075
-          'selection_end': 4808L,
1076
-          'selection_start': 4808L,
1060
+                             62)],
1061
+          'first-line': 125L,
1062
+          'folded-linenos': [],
1063
+          'sel-line': 140L,
1064
+          'sel-line-start': 6359L,
1065
+          'selection_end': 6396L,
1066
+          'selection_start': 6370L,
1077 1067
           'zoom': 0L},
1078
-         1534771988.638],
1068
+         1538212622.826],
1079 1069
         [loc('sources/tvplay.py'),
1080 1070
          {'attrib-starts': [('Source',
1081 1071
                              32),
1082 1072
                             ('Source.get_content',
1083
-                             52)],
1084
-          'first-line': 109L,
1085
-          'folded-linenos': [120L],
1086
-          'sel-line': 131L,
1087
-          'sel-line-start': 6361L,
1088
-          'selection_end': 6383L,
1089
-          'selection_start': 6383L,
1073
+                             62)],
1074
+          'first-line': 117L,
1075
+          'folded-linenos': [],
1076
+          'sel-line': 127L,
1077
+          'sel-line-start': 5744L,
1078
+          'selection_end': 5781L,
1079
+          'selection_start': 5755L,
1080
+          'zoom': 0L},
1081
+         1538212626.538],
1082
+        [loc('sources/tvplay.py'),
1083
+         {'attrib-starts': [],
1084
+          'first-line': 0L,
1085
+          'folded-linenos': [155L],
1086
+          'sel-line': 4L,
1087
+          'sel-line-start': 136L,
1088
+          'selection_end': 174L,
1089
+          'selection_start': 174L,
1090 1090
           'zoom': 0L},
1091
-         1534772103.433],
1091
+         1538212649.721],
1092 1092
         [loc('sources/tvplay.py'),
1093 1093
          {'attrib-starts': [('Source',
1094 1094
                              32),
1095 1095
                             ('Source.get_content',
1096
-                             52)],
1097
-          'first-line': 57L,
1098
-          'folded-linenos': [],
1099
-          'sel-line': 63L,
1100
-          'sel-line-start': 2330L,
1101
-          'selection_end': 2352L,
1102
-          'selection_start': 2352L,
1096
+                             62)],
1097
+          'first-line': 112L,
1098
+          'folded-linenos': [155L],
1099
+          'sel-line': 127L,
1100
+          'sel-line-start': 5744L,
1101
+          'selection_end': 5781L,
1102
+          'selection_start': 5755L,
1103
+          'zoom': 0L},
1104
+         1538212673.477],
1105
+        [loc('sources/tvplay.py'),
1106
+         {'attrib-starts': [],
1107
+          'first-line': 0L,
1108
+          'folded-linenos': [155L],
1109
+          'sel-line': 5L,
1110
+          'sel-line-start': 188L,
1111
+          'selection_end': 214L,
1112
+          'selection_start': 214L,
1103 1113
           'zoom': 0L},
1104
-         1534774794.02],
1114
+         1538212677.553],
1105 1115
         [loc('sources/tvplay.py'),
1106 1116
          {'attrib-starts': [('Source',
1107 1117
                              32),
1108 1118
                             ('Source.get_content',
1109 1119
                              62)],
1110
-          'first-line': 107L,
1111
-          'folded-linenos': [],
1112
-          'sel-line': 112L,
1113
-          'sel-line-start': 5016L,
1114
-          'selection_end': 5016L,
1115
-          'selection_start': 5016L,
1120
+          'first-line': 112L,
1121
+          'folded-linenos': [157L],
1122
+          'sel-line': 127L,
1123
+          'sel-line-start': 5744L,
1124
+          'selection_end': 5841L,
1125
+          'selection_start': 5744L,
1116 1126
           'zoom': 0L},
1117
-         1534866469.787],
1127
+         1538212820.898],
1118 1128
         [loc('sources/tvplay.py'),
1119 1129
          {'attrib-starts': [('Source',
1120 1130
                              32),
1121 1131
                             ('Source.get_content',
1122 1132
                              62)],
1123
-          'first-line': 153L,
1124
-          'folded-linenos': [],
1125
-          'sel-line': 161L,
1126
-          'sel-line-start': 7444L,
1127
-          'selection_end': 7500L,
1128
-          'selection_start': 7471L,
1133
+          'first-line': 119L,
1134
+          'folded-linenos': [157L],
1135
+          'sel-line': 129L,
1136
+          'sel-line-start': 5841L,
1137
+          'selection_end': 5878L,
1138
+          'selection_start': 5852L,
1129 1139
           'zoom': 0L},
1130
-         1534866470.415],
1140
+         1538212825.218],
1131 1141
         [loc('sources/tvplay.py'),
1132 1142
          {'attrib-starts': [('Source',
1133 1143
                              32),
1134 1144
                             ('Source.get_content',
1135 1145
                              62)],
1136
-          'first-line': 153L,
1137
-          'folded-linenos': [],
1138
-          'sel-line': 161L,
1139
-          'sel-line-start': 7444L,
1140
-          'selection_end': 7499L,
1141
-          'selection_start': 7471L,
1146
+          'first-line': 127L,
1147
+          'folded-linenos': [159L],
1148
+          'sel-line': 143L,
1149
+          'sel-line-start': 6492L,
1150
+          'selection_end': 6551L,
1151
+          'selection_start': 6551L,
1142 1152
           'zoom': 0L},
1143
-         1534866471.652],
1153
+         1538212833.955],
1144 1154
         [loc('sources/tvplay.py'),
1145 1155
          {'attrib-starts': [('Source',
1146 1156
                              32),
1147 1157
                             ('Source.get_content',
1148 1158
                              62)],
1149
-          'first-line': 126L,
1150
-          'folded-linenos': [],
1151
-          'sel-line': 161L,
1152
-          'sel-line-start': 7444L,
1153
-          'selection_end': 7521L,
1154
-          'selection_start': 7521L,
1159
+          'first-line': 134L,
1160
+          'folded-linenos': [159L],
1161
+          'sel-line': 144L,
1162
+          'sel-line-start': 6564L,
1163
+          'selection_end': 6601L,
1164
+          'selection_start': 6575L,
1155 1165
           'zoom': 0L},
1156
-         1534866508.975],
1166
+         1538212835.157],
1157 1167
         [loc('sources/tvplay.py'),
1158 1168
          {'attrib-starts': [('Source',
1159 1169
                              32),
1160 1170
                             ('Source.get_content',
1161 1171
                              62)],
1162
-          'first-line': 175L,
1163
-          'folded-linenos': [],
1164
-          'sel-line': 185L,
1165
-          'sel-line-start': 8867L,
1166
-          'selection_end': 8899L,
1167
-          'selection_start': 8894L,
1172
+          'first-line': 124L,
1173
+          'folded-linenos': [159L],
1174
+          'sel-line': 129L,
1175
+          'sel-line-start': 5841L,
1176
+          'selection_end': 5878L,
1177
+          'selection_start': 5852L,
1168 1178
           'zoom': 0L},
1169
-         1534866510.627],
1179
+         1538212838.81],
1170 1180
         [loc('sources/tvplay.py'),
1171 1181
          {'attrib-starts': [('Source',
1172 1182
                              32),
1173 1183
                             ('Source.get_content',
1174 1184
                              62)],
1175
-          'first-line': 111L,
1176
-          'folded-linenos': [],
1177
-          'sel-line': 97L,
1178
-          'sel-line-start': 4300L,
1179
-          'selection_end': 4352L,
1180
-          'selection_start': 4352L,
1185
+          'first-line': 134L,
1186
+          'folded-linenos': [159L],
1187
+          'sel-line': 144L,
1188
+          'sel-line-start': 6564L,
1189
+          'selection_end': 6601L,
1190
+          'selection_start': 6575L,
1181 1191
           'zoom': 0L},
1182
-         1534867304.635],
1183
-        [loc('run.py'),
1184
-         {'attrib-starts': [('Main',
1185
-                             22),
1186
-                            ('Main.show_pic',
1187
-                             206)],
1188
-          'first-line': 232L,
1189
-          'folded-linenos': [],
1190
-          'sel-line': 237L,
1191
-          'sel-line-start': 9356L,
1192
-          'selection_end': 9356L,
1193
-          'selection_start': 9356L,
1192
+         1538212839.721],
1193
+        [loc('sources/tvplay.py'),
1194
+         {'attrib-starts': [('Source',
1195
+                             32),
1196
+                            ('Source.get_content',
1197
+                             62)],
1198
+          'first-line': 124L,
1199
+          'folded-linenos': [159L],
1200
+          'sel-line': 129L,
1201
+          'sel-line-start': 5841L,
1202
+          'selection_end': 5878L,
1203
+          'selection_start': 5852L,
1194 1204
           'zoom': 0L},
1195
-         1534867343.078],
1205
+         1538212848.303],
1196 1206
         [loc('sources/tvplay.py'),
1197 1207
          {'attrib-starts': [('Source',
1198 1208
                              32),
1199 1209
                             ('Source.get_content',
1200 1210
                              62)],
1201
-          'first-line': 120L,
1202
-          'folded-linenos': [],
1203
-          'sel-line': 97L,
1204
-          'sel-line-start': 4300L,
1205
-          'selection_end': 4352L,
1206
-          'selection_start': 4352L,
1211
+          'first-line': 134L,
1212
+          'folded-linenos': [159L],
1213
+          'sel-line': 144L,
1214
+          'sel-line-start': 6564L,
1215
+          'selection_end': 6601L,
1216
+          'selection_start': 6575L,
1207 1217
           'zoom': 0L},
1208
-         1534867353.742],
1218
+         1538212852.612],
1209 1219
         [loc('sources/tvplay.py'),
1210 1220
          {'attrib-starts': [('Source',
1211 1221
                              32),
1212
-                            ('Source.is_video',
1213
-                             222)],
1214
-          'first-line': 214L,
1215
-          'folded-linenos': [],
1216
-          'sel-line': 222L,
1217
-          'sel-line-start': 10645L,
1218
-          'selection_end': 10661L,
1219
-          'selection_start': 10653L,
1222
+                            ('Source.get_content',
1223
+                             62)],
1224
+          'first-line': 124L,
1225
+          'folded-linenos': [159L],
1226
+          'sel-line': 129L,
1227
+          'sel-line-start': 5841L,
1228
+          'selection_end': 5878L,
1229
+          'selection_start': 5852L,
1220 1230
           'zoom': 0L},
1221
-         1534867365.534],
1231
+         1538212858.88],
1222 1232
         [loc('sources/tvplay.py'),
1223 1233
          {'attrib-starts': [('Source',
1224 1234
                              32),
1225
-                            ('Source.get_streams',
1226
-                             237)],
1227
-          'first-line': 243L,
1228
-          'folded-linenos': [],
1229
-          'sel-line': 246L,
1230
-          'sel-line-start': 11558L,
1231
-          'selection_end': 11573L,
1232
-          'selection_start': 11573L,
1235
+                            ('Source.get_content',
1236
+                             62)],
1237
+          'first-line': 134L,
1238
+          'folded-linenos': [159L],
1239
+          'sel-line': 144L,
1240
+          'sel-line-start': 6564L,
1241
+          'selection_end': 6601L,
1242
+          'selection_start': 6575L,
1233 1243
           'zoom': 0L},
1234
-         1534867772.439],
1244
+         1538212861.467],
1235 1245
         [loc('sources/tvplay.py'),
1236 1246
          {'attrib-starts': [('Source',
1237 1247
                              32),
1238 1248
                             ('Source.get_content',
1239 1249
                              62)],
1240
-          'first-line': 145L,
1241
-          'folded-linenos': [],
1250
+          'first-line': 124L,
1251
+          'folded-linenos': [159L],
1242 1252
           'sel-line': 129L,
1243
-          'sel-line-start': 5854L,
1244
-          'selection_end': 5914L,
1245
-          'selection_start': 5870L,
1253
+          'sel-line-start': 5841L,
1254
+          'selection_end': 5878L,
1255
+          'selection_start': 5852L,
1246 1256
           'zoom': 0L},
1247
-         1534867781.697],
1257
+         1538212862.657],
1248 1258
         [loc('sources/tvplay.py'),
1249 1259
          {'attrib-starts': [('Source',
1250 1260
                              32),
1251
-                            ('Source.get_streams',
1252
-                             237)],
1253
-          'first-line': 240L,
1254
-          'folded-linenos': [],
1255
-          'sel-line': 249L,
1256
-          'sel-line-start': 11673L,
1257
-          'selection_end': 11673L,
1258
-          'selection_start': 11673L,
1259
-          'zoom': 0L},
1260
-         1534868014.439],
1261
-        [loc('run.py'),
1262
-         {'attrib-starts': [('Main',
1263
-                             22),
1264
-                            ('Main.show_pic',
1265
-                             206)],
1266
-          'first-line': 232L,
1267
-          'folded-linenos': [],
1268
-          'sel-line': 237L,
1269
-          'sel-line-start': 9356L,
1270
-          'selection_end': 9356L,
1271
-          'selection_start': 9356L,
1261
+                            ('Source.get_content',
1262
+                             62)],
1263
+          'first-line': 134L,
1264
+          'folded-linenos': [159L],
1265
+          'sel-line': 144L,
1266
+          'sel-line-start': 6564L,
1267
+          'selection_end': 6601L,
1268
+          'selection_start': 6575L,
1272 1269
           'zoom': 0L},
1273
-         1534871787.894],
1270
+         1538212864.032],
1274 1271
         [loc('sources/tvplay.py'),
1275 1272
          {'attrib-starts': [('Source',
1276 1273
                              32),
1277
-                            ('Source.get_streams',
1278
-                             237)],
1279
-          'first-line': 233L,
1280
-          'folded-linenos': [],
1281
-          'sel-line': 238L,
1282
-          'sel-line-start': 11226L,
1283
-          'selection_end': 11226L,
1284
-          'selection_start': 11226L,
1285
-          'zoom': 0L},
1286
-         1534871794.684],
1287
-        [loc('run.py'),
1288
-         {'attrib-starts': [('VideoInfo',
1289
-                             343),
1290
-                            ('VideoInfo.body',
1291
-                             370)],
1292
-          'first-line': 401L,
1293
-          'folded-linenos': [],
1294
-          'sel-line': 412L,
1295
-          'sel-line-start': 16393L,
1296
-          'selection_end': 16393L,
1297
-          'selection_start': 16393L,
1274
+                            ('Source.get_content',
1275
+                             62)],
1276
+          'first-line': 124L,
1277
+          'folded-linenos': [159L],
1278
+          'sel-line': 129L,
1279
+          'sel-line-start': 5841L,
1280
+          'selection_end': 5878L,
1281
+          'selection_start': 5852L,
1298 1282
           'zoom': 0L},
1299
-         1534871894.169],
1283
+         1538212865.618],
1300 1284
         [loc('sources/tvplay.py'),
1301 1285
          {'attrib-starts': [('Source',
1302 1286
                              32),
1303
-                            ('Source.get_streams',
1304
-                             237)],
1305
-          'first-line': 233L,
1306
-          'folded-linenos': [],
1307
-          'sel-line': 238L,
1308
-          'sel-line-start': 11226L,
1309
-          'selection_end': 11226L,
1310
-          'selection_start': 11226L,
1287
+                            ('Source.get_content',
1288
+                             62)],
1289
+          'first-line': 134L,
1290
+          'folded-linenos': [159L],
1291
+          'sel-line': 144L,
1292
+          'sel-line-start': 6564L,
1293
+          'selection_end': 6601L,
1294
+          'selection_start': 6575L,
1311 1295
           'zoom': 0L},
1312
-         1534871898.081]],
1296
+         1538212867.204]],
1313 1297
         20),
1314 1298
         'current-loc': loc('sources/tvplay.py'),
1315 1299
         'editor-state-list': [(loc('run.py'),
@@ -1377,14 +1361,14 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
1377 1361
                               (loc('sources/tvplay.py'),
1378 1362
                                {'attrib-starts': [('Source',
1379 1363
         32),
1380
-        ('Source.get_title_desc',
1381
-         196)],
1382
-                                'first-line': 199L,
1383
-                                'folded-linenos': [],
1384
-                                'sel-line': 209L,
1385
-                                'sel-line-start': 10046L,
1386
-                                'selection_end': 10084L,
1387
-                                'selection_start': 10084L,
1364
+        ('Source.get_content',
1365
+         62)],
1366
+                                'first-line': 124L,
1367
+                                'folded-linenos': [159L],
1368
+                                'sel-line': 129L,
1369
+                                'sel-line-start': 5841L,
1370
+                                'selection_end': 5878L,
1371
+                                'selection_start': 5852L,
1388 1372
                                 'zoom': 0L}),
1389 1373
                               (loc('sources/euronews.py'),
1390 1374
                                {'attrib-starts': [('Source',
@@ -1456,6 +1440,7 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
1456 1440
          loc('sources/filmix.py'),
1457 1441
          loc('sources/filmas.py')]),
1458 1442
                                'open_files': [u'changelog.md',
1443
+        u'run.py',
1459 1444
         u'sources/config.py',
1460 1445
         u'sources/euronews.py',
1461 1446
         u'sources/filmas.py',
@@ -1463,7 +1448,6 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
1463 1448
         u'sources/ltc.py',
1464 1449
         u'sources/replay.py',
1465 1450
         u'util.py',
1466
-        u'run.py',
1467 1451
         u'sources/tvplay.py']},
1468 1452
         'saved_notebook_display': None,
1469 1453
         'split_percents': {0: 0.587782340862423},
@@ -1480,8 +1464,8 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
1480 1464
                          2393,
1481 1465
                          1440)}]}
1482 1466
 guimgr.recent-documents = [loc('sources/tvplay.py'),
1483
-                           loc('run.py'),
1484 1467
                            loc('util.py'),
1468
+                           loc('run.py'),
1485 1469
                            loc('sources/euronews.py'),
1486 1470
                            loc('sources/replay.py'),
1487 1471
                            loc('sources/ltc.py'),
@@ -2098,7 +2082,11 @@ search.replace-history = [u'filmix.co',
2098 2082
                           u'https://replay.lsm.lv',
2099 2083
                           u'www.shortcut.lv',
2100 2084
                           u'shortcut.lv']
2101
-search.search-history = [u'size=',
2085
+search.search-history = [u' for item in r["content"]:',
2086
+                         u'sort=',
2087
+                         u'raidijumi/kategorijas',
2088
+                         u'tvSeries/category/id/33?type=tvseries&',
2089
+                         u'size=',
2102 2090
                          u'set/search?f_metadata.tvSeri',
2103 2091
                          u'g149',
2104 2092
                          u'content.app',
@@ -2113,11 +2101,7 @@ search.search-history = [u'size=',
2113 2101
                          u'filmix.me',
2114 2102
                          u'1.4',
2115 2103
                          u'1.3',
2116
-                         u'img =',
2117
-                         u'http:',
2118
-                         u'http://replay.lsm.lv',
2119
-                         u'img0',
2120
-                         u'get_movie_info']
2104
+                         u'img =']
2121 2105
 testing.stored-results = (1,
2122 2106
                           [],
2123 2107
                           {})

+ 6
- 2
sources/tvplay.py Ver fichero

@@ -111,7 +111,7 @@ Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
111 111
             if plist[1] == "kategorijas":
112 112
                 for kat in self.kategorijas:
113 113
                     content.append(("Raidijumi - "+kat[1], "tvplay::raidijumi/%s" % kat[0], kat[3], kat[4]))
114
-                    #content.append(kat[1], "tvplay::tvSeries/category/id/%s?type=tvseries&size=500&sort=title.title&descending=true" % kat[2], kat[3], kat[4])
114
+                    #content.append(kat[1], "tvplay::tvSeries/category/id/%s?type=tvseries&size=500&sort=&descending=true" % kat[2], kat[3], kat[4])
115 115
                 return content
116 116
             else:
117 117
                 for k in self.kategorijas:
@@ -120,11 +120,13 @@ Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
120 120
                         break
121 121
                 else:
122 122
                     return content
123
-                data = "tvplay::tvSeries/category/id/%s?type=tvseries&size=500&sort=title.title&descending=true" % kat_num
123
+                data = "tvplay::tvSeries/category/id/%s?type=tvseries&size=500&sort=&descending=true" % kat_num
124 124
                 return self.get_content(data)
125 125
 
126 126
         elif path == "asset/search":
127 127
             r = self.call(data)
128
+            if not "content" in r:
129
+                raise Exception("Error reading items list")
128 130
             for item in r["content"]:
129 131
                 data2 = "asset/%s" % item["id"]
130 132
                 title, img, desc = self.get_title_desc(item)
@@ -138,6 +140,8 @@ Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
138 140
 
139 141
         elif plist[0] == "tvSeries" and plist[1] == "category":
140 142
             r = self.call(data)
143
+            if not "content" in r:
144
+                raise Exception("Error reading items list")
141 145
             for item in r["content"]:
142 146
                 tvseries = True if "type" in qs and qs["type"] == "tvseries" else False
143 147
                 if tvseries and not "seasonNumber" in item:  # tvseries (programma)