Browse Source

Salabots tvplay (nerādīja kategorijas)

Ivars 6 years ago
parent
commit
792ff4aad1
2 changed files with 211 additions and 223 deletions
  1. 205
    221
      project.wpr
  2. 6
    2
      sources/tvplay.py

+ 205
- 221
project.wpr View File

191
             None,
191
             None,
192
             1,
192
             1,
193
             0)},
193
             0)},
194
-                     loc('unknown:<untitled> #2'): {10: (0,
194
+                     loc('unknown:<untitled> #1'): {10: (0,
195
         None,
195
         None,
196
         1,
196
         1,
197
         0)},
197
         0)},
198
-                     loc('unknown:<untitled> #1'): {2: (0,
198
+                     loc('unknown:<untitled> #2'): {2: (0,
199
         None,
199
         None,
200
         1,
200
         1,
201
         0)}}
201
         0)}}
833
         'top-node': [('generic attribute',
833
         'top-node': [('generic attribute',
834
                       loc('../../../../../Python27/lib/site-packages/PIL/Image.py'),
834
                       loc('../../../../../Python27/lib/site-packages/PIL/Image.py'),
835
                       'ADAPTIVE')]},
835
                       'ADAPTIVE')]},
836
-        loc('unknown:<untitled> #3'): {'column-widths': [1.0],
836
+        loc('unknown:<untitled> #5'): {'column-widths': [1.0],
837
                                        'expanded-nodes': [],
837
                                        'expanded-nodes': [],
838
                                        'selected-nodes': [],
838
                                        'selected-nodes': [],
839
                                        'top-node': None},
839
                                        'top-node': None},
840
-        loc('unknown:<untitled> #4'): {'expanded-nodes': [],
840
+        loc('unknown:<untitled> #6'): {'expanded-nodes': [],
841
                                        'selected-nodes': [],
841
                                        'selected-nodes': [],
842
                                        'top-node': None},
842
                                        'top-node': None},
843
-        loc('unknown:<untitled> #5'): {'column-widths': [1.0],
844
-                                       'expanded-nodes': [],
843
+        loc('unknown:<untitled> #4'): {'expanded-nodes': [],
845
                                        'selected-nodes': [],
844
                                        'selected-nodes': [],
846
                                        'top-node': None},
845
                                        'top-node': None},
847
-        loc('unknown:<untitled> #6'): {'expanded-nodes': [],
846
+        loc('unknown:<untitled> #3'): {'column-widths': [1.0],
847
+                                       'expanded-nodes': [],
848
                                        'selected-nodes': [],
848
                                        'selected-nodes': [],
849
                                        'top-node': None}},
849
                                        'top-node': None}},
850
                                 'browse_mode': u'Current Module',
850
                                 'browse_mode': u'Current Module',
871
                                None)],
871
                                None)],
872
                  'primary_view_state': {'area': 'wide',
872
                  'primary_view_state': {'area': 'wide',
873
         'constraint': None,
873
         'constraint': None,
874
-        'current_pages': [2,
874
+        'current_pages': [4,
875
                           0],
875
                           0],
876
         'notebook_display': 'normal',
876
         'notebook_display': 'normal',
877
         'notebook_percent': 0.33947157726180943,
877
         'notebook_percent': 0.33947157726180943,
904
                                        'fInterpretBackslashes': False,
904
                                        'fInterpretBackslashes': False,
905
                                        'fMatchCase': False,
905
                                        'fMatchCase': False,
906
                                        'fOmitBinary': True,
906
                                        'fOmitBinary': True,
907
-                                       'fRegexFlags': 46,
907
+                                       'fRegexFlags': 42,
908
                                        'fReplaceText': u'filmix.co',
908
                                        'fReplaceText': u'filmix.co',
909
                                        'fReverse': False,
909
                                        'fReverse': False,
910
-                                       'fSearchText': u'title,',
910
+                                       'fSearchText': u' for item in r["content"]:',
911
                                        'fStartPos': 0,
911
                                        'fStartPos': 0,
912
                                        'fStyle': 'text',
912
                                        'fStyle': 'text',
913
                                        'fWholeWords': False,
913
                                        'fWholeWords': False,
933
                                        'fInterpretBackslashes': False,
933
                                        'fInterpretBackslashes': False,
934
                                        'fMatchCase': False,
934
                                        'fMatchCase': False,
935
                                        'fOmitBinary': True,
935
                                        'fOmitBinary': True,
936
-                                       'fRegexFlags': 46,
936
+                                       'fRegexFlags': 42,
937
                                        'fReplaceText': u'',
937
                                        'fReplaceText': u'',
938
                                        'fReverse': False,
938
                                        'fReverse': False,
939
                                        'fSearchText': u'command',
939
                                        'fSearchText': u'command',
981
         -1,
981
         -1,
982
         -1),
982
         -1),
983
                        'attrib-starts': [],
983
                        'attrib-starts': [],
984
-                       'first-line': 20L,
984
+                       'first-line': 11L,
985
                        'folded-linenos': [],
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
                        'launch-id': None,
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
                        'zoom': 0L}),
996
                        'zoom': 0L}),
1003
                      ('debug-watch',
997
                      ('debug-watch',
1004
                       'wide',
998
                       'wide',
1039
                        'attrib-starts': [],
1033
                        'attrib-starts': [],
1040
                        'first-line': 0L,
1034
                        'first-line': 0L,
1041
                        'folded-linenos': [],
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
                        'launch-id': None,
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
                        'zoom': 0L})],
1042
                        'zoom': 0L})],
1053
         'primary_view_state': {'editor_states': ({'bookmarks': ([[loc('sources/tvplay.py'),
1043
         'primary_view_state': {'editor_states': ({'bookmarks': ([[loc('sources/tvplay.py'),
1054
         {'attrib-starts': [('Source',
1044
         {'attrib-starts': [('Source',
1055
                             32),
1045
                             32),
1056
                            ('Source.get_content',
1046
                            ('Source.get_content',
1057
-                            52)],
1058
-         'first-line': 106L,
1047
+                            62)],
1048
+         'first-line': 117L,
1059
          'folded-linenos': [],
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
          'zoom': 0L},
1054
          'zoom': 0L},
1065
-        1534770326.346],
1055
+        1538212621.538],
1066
         [loc('sources/tvplay.py'),
1056
         [loc('sources/tvplay.py'),
1067
          {'attrib-starts': [('Source',
1057
          {'attrib-starts': [('Source',
1068
                              32),
1058
                              32),
1069
                             ('Source.get_content',
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
           'zoom': 0L},
1067
           'zoom': 0L},
1078
-         1534771988.638],
1068
+         1538212622.826],
1079
         [loc('sources/tvplay.py'),
1069
         [loc('sources/tvplay.py'),
1080
          {'attrib-starts': [('Source',
1070
          {'attrib-starts': [('Source',
1081
                              32),
1071
                              32),
1082
                             ('Source.get_content',
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
           'zoom': 0L},
1090
           'zoom': 0L},
1091
-         1534772103.433],
1091
+         1538212649.721],
1092
         [loc('sources/tvplay.py'),
1092
         [loc('sources/tvplay.py'),
1093
          {'attrib-starts': [('Source',
1093
          {'attrib-starts': [('Source',
1094
                              32),
1094
                              32),
1095
                             ('Source.get_content',
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
           'zoom': 0L},
1113
           'zoom': 0L},
1104
-         1534774794.02],
1114
+         1538212677.553],
1105
         [loc('sources/tvplay.py'),
1115
         [loc('sources/tvplay.py'),
1106
          {'attrib-starts': [('Source',
1116
          {'attrib-starts': [('Source',
1107
                              32),
1117
                              32),
1108
                             ('Source.get_content',
1118
                             ('Source.get_content',
1109
                              62)],
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
           'zoom': 0L},
1126
           'zoom': 0L},
1117
-         1534866469.787],
1127
+         1538212820.898],
1118
         [loc('sources/tvplay.py'),
1128
         [loc('sources/tvplay.py'),
1119
          {'attrib-starts': [('Source',
1129
          {'attrib-starts': [('Source',
1120
                              32),
1130
                              32),
1121
                             ('Source.get_content',
1131
                             ('Source.get_content',
1122
                              62)],
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
           'zoom': 0L},
1139
           'zoom': 0L},
1130
-         1534866470.415],
1140
+         1538212825.218],
1131
         [loc('sources/tvplay.py'),
1141
         [loc('sources/tvplay.py'),
1132
          {'attrib-starts': [('Source',
1142
          {'attrib-starts': [('Source',
1133
                              32),
1143
                              32),
1134
                             ('Source.get_content',
1144
                             ('Source.get_content',
1135
                              62)],
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
           'zoom': 0L},
1152
           'zoom': 0L},
1143
-         1534866471.652],
1153
+         1538212833.955],
1144
         [loc('sources/tvplay.py'),
1154
         [loc('sources/tvplay.py'),
1145
          {'attrib-starts': [('Source',
1155
          {'attrib-starts': [('Source',
1146
                              32),
1156
                              32),
1147
                             ('Source.get_content',
1157
                             ('Source.get_content',
1148
                              62)],
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
           'zoom': 0L},
1165
           'zoom': 0L},
1156
-         1534866508.975],
1166
+         1538212835.157],
1157
         [loc('sources/tvplay.py'),
1167
         [loc('sources/tvplay.py'),
1158
          {'attrib-starts': [('Source',
1168
          {'attrib-starts': [('Source',
1159
                              32),
1169
                              32),
1160
                             ('Source.get_content',
1170
                             ('Source.get_content',
1161
                              62)],
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
           'zoom': 0L},
1178
           'zoom': 0L},
1169
-         1534866510.627],
1179
+         1538212838.81],
1170
         [loc('sources/tvplay.py'),
1180
         [loc('sources/tvplay.py'),
1171
          {'attrib-starts': [('Source',
1181
          {'attrib-starts': [('Source',
1172
                              32),
1182
                              32),
1173
                             ('Source.get_content',
1183
                             ('Source.get_content',
1174
                              62)],
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
           'zoom': 0L},
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
           'zoom': 0L},
1204
           'zoom': 0L},
1195
-         1534867343.078],
1205
+         1538212848.303],
1196
         [loc('sources/tvplay.py'),
1206
         [loc('sources/tvplay.py'),
1197
          {'attrib-starts': [('Source',
1207
          {'attrib-starts': [('Source',
1198
                              32),
1208
                              32),
1199
                             ('Source.get_content',
1209
                             ('Source.get_content',
1200
                              62)],
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
           'zoom': 0L},
1217
           'zoom': 0L},
1208
-         1534867353.742],
1218
+         1538212852.612],
1209
         [loc('sources/tvplay.py'),
1219
         [loc('sources/tvplay.py'),
1210
          {'attrib-starts': [('Source',
1220
          {'attrib-starts': [('Source',
1211
                              32),
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
           'zoom': 0L},
1230
           'zoom': 0L},
1221
-         1534867365.534],
1231
+         1538212858.88],
1222
         [loc('sources/tvplay.py'),
1232
         [loc('sources/tvplay.py'),
1223
          {'attrib-starts': [('Source',
1233
          {'attrib-starts': [('Source',
1224
                              32),
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
           'zoom': 0L},
1243
           'zoom': 0L},
1234
-         1534867772.439],
1244
+         1538212861.467],
1235
         [loc('sources/tvplay.py'),
1245
         [loc('sources/tvplay.py'),
1236
          {'attrib-starts': [('Source',
1246
          {'attrib-starts': [('Source',
1237
                              32),
1247
                              32),
1238
                             ('Source.get_content',
1248
                             ('Source.get_content',
1239
                              62)],
1249
                              62)],
1240
-          'first-line': 145L,
1241
-          'folded-linenos': [],
1250
+          'first-line': 124L,
1251
+          'folded-linenos': [159L],
1242
           'sel-line': 129L,
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
           'zoom': 0L},
1256
           'zoom': 0L},
1247
-         1534867781.697],
1257
+         1538212862.657],
1248
         [loc('sources/tvplay.py'),
1258
         [loc('sources/tvplay.py'),
1249
          {'attrib-starts': [('Source',
1259
          {'attrib-starts': [('Source',
1250
                              32),
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
           'zoom': 0L},
1269
           'zoom': 0L},
1273
-         1534871787.894],
1270
+         1538212864.032],
1274
         [loc('sources/tvplay.py'),
1271
         [loc('sources/tvplay.py'),
1275
          {'attrib-starts': [('Source',
1272
          {'attrib-starts': [('Source',
1276
                              32),
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
           'zoom': 0L},
1282
           'zoom': 0L},
1299
-         1534871894.169],
1283
+         1538212865.618],
1300
         [loc('sources/tvplay.py'),
1284
         [loc('sources/tvplay.py'),
1301
          {'attrib-starts': [('Source',
1285
          {'attrib-starts': [('Source',
1302
                              32),
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
           'zoom': 0L},
1295
           'zoom': 0L},
1312
-         1534871898.081]],
1296
+         1538212867.204]],
1313
         20),
1297
         20),
1314
         'current-loc': loc('sources/tvplay.py'),
1298
         'current-loc': loc('sources/tvplay.py'),
1315
         'editor-state-list': [(loc('run.py'),
1299
         'editor-state-list': [(loc('run.py'),
1377
                               (loc('sources/tvplay.py'),
1361
                               (loc('sources/tvplay.py'),
1378
                                {'attrib-starts': [('Source',
1362
                                {'attrib-starts': [('Source',
1379
         32),
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
                                 'zoom': 0L}),
1372
                                 'zoom': 0L}),
1389
                               (loc('sources/euronews.py'),
1373
                               (loc('sources/euronews.py'),
1390
                                {'attrib-starts': [('Source',
1374
                                {'attrib-starts': [('Source',
1456
          loc('sources/filmix.py'),
1440
          loc('sources/filmix.py'),
1457
          loc('sources/filmas.py')]),
1441
          loc('sources/filmas.py')]),
1458
                                'open_files': [u'changelog.md',
1442
                                'open_files': [u'changelog.md',
1443
+        u'run.py',
1459
         u'sources/config.py',
1444
         u'sources/config.py',
1460
         u'sources/euronews.py',
1445
         u'sources/euronews.py',
1461
         u'sources/filmas.py',
1446
         u'sources/filmas.py',
1463
         u'sources/ltc.py',
1448
         u'sources/ltc.py',
1464
         u'sources/replay.py',
1449
         u'sources/replay.py',
1465
         u'util.py',
1450
         u'util.py',
1466
-        u'run.py',
1467
         u'sources/tvplay.py']},
1451
         u'sources/tvplay.py']},
1468
         'saved_notebook_display': None,
1452
         'saved_notebook_display': None,
1469
         'split_percents': {0: 0.587782340862423},
1453
         'split_percents': {0: 0.587782340862423},
1480
                          2393,
1464
                          2393,
1481
                          1440)}]}
1465
                          1440)}]}
1482
 guimgr.recent-documents = [loc('sources/tvplay.py'),
1466
 guimgr.recent-documents = [loc('sources/tvplay.py'),
1483
-                           loc('run.py'),
1484
                            loc('util.py'),
1467
                            loc('util.py'),
1468
+                           loc('run.py'),
1485
                            loc('sources/euronews.py'),
1469
                            loc('sources/euronews.py'),
1486
                            loc('sources/replay.py'),
1470
                            loc('sources/replay.py'),
1487
                            loc('sources/ltc.py'),
1471
                            loc('sources/ltc.py'),
2098
                           u'https://replay.lsm.lv',
2082
                           u'https://replay.lsm.lv',
2099
                           u'www.shortcut.lv',
2083
                           u'www.shortcut.lv',
2100
                           u'shortcut.lv']
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
                          u'set/search?f_metadata.tvSeri',
2090
                          u'set/search?f_metadata.tvSeri',
2103
                          u'g149',
2091
                          u'g149',
2104
                          u'content.app',
2092
                          u'content.app',
2113
                          u'filmix.me',
2101
                          u'filmix.me',
2114
                          u'1.4',
2102
                          u'1.4',
2115
                          u'1.3',
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
 testing.stored-results = (1,
2105
 testing.stored-results = (1,
2122
                           [],
2106
                           [],
2123
                           {})
2107
                           {})

+ 6
- 2
sources/tvplay.py View File

111
             if plist[1] == "kategorijas":
111
             if plist[1] == "kategorijas":
112
                 for kat in self.kategorijas:
112
                 for kat in self.kategorijas:
113
                     content.append(("Raidijumi - "+kat[1], "tvplay::raidijumi/%s" % kat[0], kat[3], kat[4]))
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
                 return content
115
                 return content
116
             else:
116
             else:
117
                 for k in self.kategorijas:
117
                 for k in self.kategorijas:
120
                         break
120
                         break
121
                 else:
121
                 else:
122
                     return content
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
                 return self.get_content(data)
124
                 return self.get_content(data)
125
 
125
 
126
         elif path == "asset/search":
126
         elif path == "asset/search":
127
             r = self.call(data)
127
             r = self.call(data)
128
+            if not "content" in r:
129
+                raise Exception("Error reading items list")
128
             for item in r["content"]:
130
             for item in r["content"]:
129
                 data2 = "asset/%s" % item["id"]
131
                 data2 = "asset/%s" % item["id"]
130
                 title, img, desc = self.get_title_desc(item)
132
                 title, img, desc = self.get_title_desc(item)
138
 
140
 
139
         elif plist[0] == "tvSeries" and plist[1] == "category":
141
         elif plist[0] == "tvSeries" and plist[1] == "category":
140
             r = self.call(data)
142
             r = self.call(data)
143
+            if not "content" in r:
144
+                raise Exception("Error reading items list")
141
             for item in r["content"]:
145
             for item in r["content"]:
142
                 tvseries = True if "type" in qs and qs["type"] == "tvseries" else False
146
                 tvseries = True if "type" in qs and qs["type"] == "tvseries" else False
143
                 if tvseries and not "seasonNumber" in item:  # tvseries (programma)
147
                 if tvseries and not "seasonNumber" in item:  # tvseries (programma)