Browse Source

salabots filmix u.x.

Ivars 6 years ago
parent
commit
81d2dcd3a6
3 changed files with 392 additions and 401 deletions
  1. 3
    0
      changelog.md
  2. 314
    330
      project.wpr
  3. 75
    71
      sources/filmix.py

+ 3
- 0
changelog.md View File

@@ -0,0 +1,3 @@
1
+**10.03.2018**:
2
+- filmix turlkojumi/srīmi salaboti (nerādīja visas sērijas u.c.)
3
+

+ 314
- 330
project.wpr View File

@@ -117,6 +117,10 @@ debug.breakpoints = {loc('Downloader.py'): {182L: (0,
117 117
                      loc('sources/euronews.py'): {161L: (0,
118 118
         None,
119 119
         1,
120
+        0)},
121
+                     loc('sources/filmix.py'): {121L: (0,
122
+        None,
123
+        1,
120 124
         0)},
121 125
                      loc('sources/filmon.py'): {49L: (0,
122 126
         None,
@@ -150,11 +154,11 @@ debug.breakpoints = {loc('Downloader.py'): {182L: (0,
150 154
             None,
151 155
             1,
152 156
             0)},
153
-                     loc('unknown:<untitled> #2'): {10: (0,
157
+                     loc('unknown:<untitled> #1'): {10: (0,
154 158
         None,
155 159
         1,
156 160
         0)},
157
-                     loc('unknown:<untitled> #1'): {2: (0,
161
+                     loc('unknown:<untitled> #2'): {2: (0,
158 162
         None,
159 163
         1,
160 164
         0)}}
@@ -249,7 +253,7 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
249 253
                  'current_pages': [0,
250 254
                                    0],
251 255
                  'full-screen': False,
252
-                 'notebook_display': 'tabs only',
256
+                 'notebook_display': 'normal',
253 257
                  'notebook_percent': 0.17992831541218635,
254 258
                  'override_title': None,
255 259
                  'pagelist': [('project',
@@ -257,8 +261,8 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
257 261
                                0,
258 262
                                {'tree-state': {'file-sort-method': 'by name',
259 263
         'list-files-first': 0,
260
-        'tree-states': {'deep': {'expanded-nodes': [(1,)],
261
-                                 'selected-nodes': [(16,)],
264
+        'tree-states': {'deep': {'expanded-nodes': [(2,)],
265
+                                 'selected-nodes': [(17,)],
262 266
                                  'top-node': (0,)}},
263 267
         'tree-style': 'deep'}}),
264 268
                               ('snippets',
@@ -777,18 +781,18 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
777 781
         'top-node': [('generic attribute',
778 782
                       loc('../../../../../Python27/lib/site-packages/PIL/Image.py'),
779 783
                       'ADAPTIVE')]},
780
-        loc('unknown:<untitled> #6'): {'column-widths': [1.0],
784
+        loc('unknown:<untitled> #3'): {'column-widths': [1.0],
781 785
                                        'expanded-nodes': [],
782 786
                                        'selected-nodes': [],
783 787
                                        'top-node': None},
784
-        loc('unknown:<untitled> #5'): {'column-widths': [1.0],
785
-                                       'expanded-nodes': [],
788
+        loc('unknown:<untitled> #6'): {'expanded-nodes': [],
786 789
                                        'selected-nodes': [],
787 790
                                        'top-node': None},
788
-        loc('unknown:<untitled> #4'): {'expanded-nodes': [],
791
+        loc('unknown:<untitled> #5'): {'expanded-nodes': [],
789 792
                                        'selected-nodes': [],
790 793
                                        'top-node': None},
791
-        loc('unknown:<untitled> #3'): {'expanded-nodes': [],
794
+        loc('unknown:<untitled> #4'): {'column-widths': [1.0],
795
+                                       'expanded-nodes': [],
792 796
                                        'selected-nodes': [],
793 797
                                        'top-node': None}},
794 798
                                 'browse_mode': u'Current Module',
@@ -925,35 +929,31 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
925 929
         -1,
926 930
         -1),
927 931
                        'attrib-starts': [],
928
-                       'first-line': 56L,
932
+                       'first-line': 76L,
929 933
                        'folded-linenos': [],
930
-                       'history': {u'file:C:/Data/Programming/enigma2/PlayStream2/content/run.py': ['r'\
931
-        '\n',
932
-        'self.url+data\n',
933
-        'r.content\n',
934
-        'r.cookies\n',
935
-        'r.cookies.keys()\n',
936
-        'cookie\n',
934
+                       'history': {u'file:C:/Data/Programming/enigma2/PlayStream2/content/sources/filmix.py': ['p'\
935
+        'ath\n',
936
+        'print translations\n',
937
+        'print translations[0]\n',
938
+        'translations.keys()[0]\n',
939
+        'print translations.keys()[0]\n',
940
+        'print translations.keys()[1]\n',
941
+        'translations[pl]\n',
942
+        'len(translations)\n',
937 943
         'data\n',
938
-        'headers\n',
939
-        'print data\n'],
940
-                                   u'file:C:/Data/Programming/enigma2/PlayStream2/content/sources/ltc.py': ['e'\
941
-        'pg\n',
942
-        'desc\n',
943
-        'title\n'],
944
-                                   u'file:C:/Data/Programming/enigma2/PlayStream2/content/sources/replay.py': ['d'\
945
-        'esc\n',
946
-        'print desc\n',
947
-        'title\n',
948
-        'item\n',
949
-        'item[0]\n',
950
-        'item[0].split("theme=")\n',
951
-        'item[0].split("theme=")[1]\n']},
944
+        'translations[0]\n',
945
+        'translations.keys()\n',
946
+        'translations\n',
947
+        'playlist =js["playlist"]\n',
948
+        'playlist\n',
949
+        'len(playlist)\n',
950
+        's\n',
951
+        'e\n']},
952 952
                        'launch-id': None,
953
-                       'sel-line': 67L,
954
-                       'sel-line-start': 2424L,
955
-                       'selection_end': 2424L,
956
-                       'selection_start': 2424L,
953
+                       'sel-line': 87L,
954
+                       'sel-line-start': 8336L,
955
+                       'selection_end': 8336L,
956
+                       'selection_start': 8336L,
957 957
                        'zoom': 0L}),
958 958
                      ('debug-watch',
959 959
                       'wide',
@@ -966,8 +966,8 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
966 966
         u'theme'),
967 967
                                        ('eval',
968 968
         u'item')],
969
-                       'tree-state': {'expanded-nodes': [],
970
-                                      'selected-nodes': [(2,)],
969
+                       'tree-state': {'expanded-nodes': [(0,)],
970
+                                      'selected-nodes': [],
971 971
                                       'top-node': (0,)}}),
972 972
                      ('messages',
973 973
                       'wide',
@@ -999,269 +999,273 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
999 999
                        'selection_end': 174L,
1000 1000
                        'selection_start': 174L,
1001 1001
                        'zoom': 0L})],
1002
-        'primary_view_state': {'editor_states': ({'bookmarks': ([[loc('ContentSources.py'),
1003
-        {'attrib-starts': [('ContentSources',
1004
-                            16),
1005
-                           ('ContentSources.__init__',
1006
-                            20)],
1007
-         'first-line': 54L,
1002
+        'primary_view_state': {'editor_states': ({'bookmarks': ([[loc('sources/ltc.py'),
1003
+        {'attrib-starts': [('Source',
1004
+                            26),
1005
+                           ('Source.get_content',
1006
+                            73)],
1007
+         'first-line': 116L,
1008 1008
          'folded-linenos': [],
1009
-         'sel-line': 61L,
1010
-         'sel-line-start': 2639L,
1011
-         'selection_end': 2704L,
1012
-         'selection_start': 2700L,
1009
+         'sel-line': 124L,
1010
+         'sel-line-start': 5213L,
1011
+         'selection_end': 5232L,
1012
+         'selection_start': 5232L,
1013 1013
          'zoom': 0L},
1014
-        1518896761.573],
1015
-        [loc('ContentSources.py'),
1016
-         {'attrib-starts': [('ContentSources',
1017
-                             16),
1018
-                            ('ContentSources.get_streams',
1019
-                             96)],
1020
-          'first-line': 97L,
1021
-          'folded-linenos': [],
1022
-          'sel-line': 106L,
1023
-          'sel-line-start': 4586L,
1024
-          'selection_end': 4611L,
1025
-          'selection_start': 4607L,
1026
-          'zoom': 0L},
1027
-         1518896762.565],
1028
-        [loc('ContentSources.py'),
1029
-         {'attrib-starts': [('ContentSources',
1030
-                             16),
1031
-                            ('ContentSources.get_streams',
1032
-                             96)],
1033
-          'first-line': 114L,
1014
+        1520677422.318],
1015
+        [loc('sources/config.py'),
1016
+         {'attrib-starts': [('Source',
1017
+                             12),
1018
+                            ('Source.get_content',
1019
+                             24)],
1020
+          'first-line': 18L,
1034 1021
           'folded-linenos': [],
1035
-          'sel-line': 123L,
1036
-          'sel-line-start': 5221L,
1037
-          'selection_end': 5309L,
1038
-          'selection_start': 5305L,
1022
+          'sel-line': 26L,
1023
+          'sel-line-start': 938L,
1024
+          'selection_end': 963L,
1025
+          'selection_start': 951L,
1039 1026
           'zoom': 0L},
1040
-         1518896764.162],
1041
-        [loc('ContentSources.py'),
1042
-         {'attrib-starts': [('ContentSources',
1043
-                             16),
1044
-                            ('ContentSources.__init__',
1045
-                             20)],
1046
-          'first-line': 49L,
1027
+         1520677584.944],
1028
+        [loc('sources/config.py'),
1029
+         {'attrib-starts': [('Source',
1030
+                             12),
1031
+                            ('Source.read_streams',
1032
+                             36)],
1033
+          'first-line': 28L,
1047 1034
           'folded-linenos': [],
1048
-          'sel-line': 49L,
1049
-          'sel-line-start': 2031L,
1050
-          'selection_end': 2056L,
1051
-          'selection_start': 2056L,
1035
+          'sel-line': 36L,
1036
+          'sel-line-start': 1181L,
1037
+          'selection_end': 1201L,
1038
+          'selection_start': 1189L,
1052 1039
           'zoom': 0L},
1053
-         1518896775.095],
1054
-        [loc('ContentSources.py'),
1055
-         {'attrib-starts': [('ContentSources',
1056
-                             16),
1057
-                            ('ContentSources.get_content',
1058
-                             64)],
1059
-          'first-line': 71L,
1040
+         1520677589.925],
1041
+        [loc('sources/config.py'),
1042
+         {'attrib-starts': [('Source',
1043
+                             12),
1044
+                            ('Source.read_streams',
1045
+                             36)],
1046
+          'first-line': 44L,
1060 1047
           'folded-linenos': [],
1061
-          'sel-line': 80L,
1062
-          'sel-line-start': 3634L,
1063
-          'selection_end': 3676L,
1064
-          'selection_start': 3672L,
1048
+          'sel-line': 50L,
1049
+          'sel-line-start': 1707L,
1050
+          'selection_end': 1772L,
1051
+          'selection_start': 1723L,
1065 1052
           'zoom': 0L},
1066
-         1518896776.269],
1067
-        [loc('ContentSources.py'),
1068
-         {'attrib-starts': [('ContentSources',
1069
-                             16),
1070
-                            ('ContentSources.get_content',
1071
-                             64)],
1072
-          'first-line': 77L,
1053
+         1520677822.726],
1054
+        [loc('run.py'),
1055
+         {'attrib-starts': [('Main',
1056
+                             22),
1057
+                            ('Main.play_video',
1058
+                             242)],
1059
+          'first-line': 255L,
1073 1060
           'folded-linenos': [],
1074
-          'sel-line': 80L,
1075
-          'sel-line-start': 3634L,
1076
-          'selection_end': 3662L,
1077
-          'selection_start': 3662L,
1061
+          'sel-line': 267L,
1062
+          'sel-line-start': 10485L,
1063
+          'selection_end': 10511L,
1064
+          'selection_start': 10511L,
1078 1065
           'zoom': 0L},
1079
-         1518896830.949],
1080
-        [loc('sources/replay.py'),
1066
+         1520677824.052],
1067
+        [loc('sources/cinemalive.py'),
1081 1068
          {'attrib-starts': [('Source',
1082
-                             30),
1083
-                            ('Source.get_content',
1084
-                             41)],
1085
-          'first-line': 84L,
1069
+                             29),
1070
+                            ('Source.get_streams',
1071
+                             166)],
1072
+          'first-line': 176L,
1086 1073
           'folded-linenos': [],
1087
-          'sel-line': 85L,
1088
-          'sel-line-start': 3948L,
1089
-          'selection_end': 3948L,
1090
-          'selection_start': 3948L,
1074
+          'sel-line': 184L,
1075
+          'sel-line-start': 9047L,
1076
+          'selection_end': 9087L,
1077
+          'selection_start': 9074L,
1091 1078
           'zoom': 0L},
1092
-         1518896951.611],
1093
-        [loc('sources/replay.py'),
1094
-         {'attrib-starts': [('Source',
1095
-                             30),
1096
-                            ('Source.__init__',
1097
-                             32)],
1098
-          'first-line': 27L,
1079
+         1520679273.911],
1080
+        [loc('run.py'),
1081
+         {'attrib-starts': [('Main',
1082
+                             22),
1083
+                            ('Main.play_video',
1084
+                             242)],
1085
+          'first-line': 255L,
1099 1086
           'folded-linenos': [],
1100
-          'sel-line': 35L,
1101
-          'sel-line-start': 1150L,
1102
-          'selection_end': 1165L,
1103
-          'selection_start': 1165L,
1087
+          'sel-line': 267L,
1088
+          'sel-line-start': 10485L,
1089
+          'selection_end': 10511L,
1090
+          'selection_start': 10511L,
1104 1091
           'zoom': 0L},
1105
-         1518902208.605],
1106
-        [loc('sources/replay.py'),
1107
-         {'attrib-starts': [('Source',
1108
-                             30),
1109
-                            ('Source.__init__',
1110
-                             32)],
1111
-          'first-line': 32L,
1092
+         1520679278.088],
1093
+        [loc('kivy_test.py'),
1094
+         {'attrib-starts': [],
1095
+          'first-line': 0L,
1096
+          'folded-linenos': [24L],
1097
+          'sel-line': 0L,
1098
+          'sel-line-start': 0L,
1099
+          'selection_end': 3L,
1100
+          'selection_start': 3L,
1101
+          'zoom': 0L},
1102
+         1520679279.16],
1103
+        [loc('run.py'),
1104
+         {'attrib-starts': [('Main',
1105
+                             22),
1106
+                            ('Main.play_video',
1107
+                             242)],
1108
+          'first-line': 255L,
1112 1109
           'folded-linenos': [],
1113
-          'sel-line': 39L,
1114
-          'sel-line-start': 1273L,
1115
-          'selection_end': 1288L,
1116
-          'selection_start': 1287L,
1110
+          'sel-line': 267L,
1111
+          'sel-line-start': 10485L,
1112
+          'selection_end': 10511L,
1113
+          'selection_start': 10511L,
1117 1114
           'zoom': 0L},
1118
-         1518902209.757],
1119
-        [loc('sources/replay.py'),
1115
+         1520679328.293],
1116
+        [loc('sources/filmix.py'),
1120 1117
          {'attrib-starts': [('Source',
1121
-                             30),
1118
+                             31),
1122 1119
                             ('Source.get_content',
1123
-                             41)],
1124
-          'first-line': 76L,
1120
+                             56)],
1121
+          'first-line': 79L,
1125 1122
           'folded-linenos': [],
1126
-          'sel-line': 83L,
1127
-          'sel-line-start': 3857L,
1128
-          'selection_end': 3881L,
1129
-          'selection_start': 3881L,
1123
+          'sel-line': 89L,
1124
+          'sel-line-start': 3266L,
1125
+          'selection_end': 3324L,
1126
+          'selection_start': 3324L,
1130 1127
           'zoom': 0L},
1131
-         1518902233.149],
1132
-        [loc('sources/replay.py'),
1128
+         1520679335.223],
1129
+        [loc('sources/filmix.py'),
1133 1130
          {'attrib-starts': [('Source',
1134
-                             30),
1135
-                            ('Source.get_content',
1136
-                             41)],
1137
-          'first-line': 76L,
1131
+                             31)],
1132
+          'first-line': 283L,
1138 1133
           'folded-linenos': [],
1139
-          'sel-line': 78L,
1140
-          'sel-line-start': 3572L,
1141
-          'selection_end': 3593L,
1142
-          'selection_start': 3593L,
1134
+          'sel-line': 292L,
1135
+          'sel-line-start': 12893L,
1136
+          'selection_end': 12893L,
1137
+          'selection_start': 12893L,
1143 1138
           'zoom': 0L},
1144
-         1518902241.094],
1145
-        [loc('sources/replay.py'),
1146
-         {'attrib-starts': [('Source',
1147
-                             30),
1148
-                            ('Source.get_content',
1149
-                             41)],
1150
-          'first-line': 79L,
1139
+         1520682303.573],
1140
+        [loc('run.py'),
1141
+         {'attrib-starts': [('Main',
1142
+                             22),
1143
+                            ('Main.list_action',
1144
+                             106)],
1145
+          'first-line': 105L,
1151 1146
           'folded-linenos': [],
1152
-          'sel-line': 86L,
1153
-          'sel-line-start': 3989L,
1154
-          'selection_end': 4008L,
1155
-          'selection_start': 4005L,
1147
+          'sel-line': 110L,
1148
+          'sel-line-start': 4505L,
1149
+          'selection_end': 4505L,
1150
+          'selection_start': 4505L,
1156 1151
           'zoom': 0L},
1157
-         1518902242.177],
1158
-        [loc('sources/replay.py'),
1152
+         1520682335.838],
1153
+        [loc('sources/filmix.py'),
1159 1154
          {'attrib-starts': [('Source',
1160
-                             30),
1161
-                            ('Source.get_content',
1162
-                             41)],
1163
-          'first-line': 79L,
1155
+                             31),
1156
+                            ('Source.get_streams',
1157
+                             264)],
1158
+          'first-line': 306L,
1164 1159
           'folded-linenos': [],
1165
-          'sel-line': 86L,
1166
-          'sel-line-start': 3989L,
1167
-          'selection_end': 4019L,
1168
-          'selection_start': 4016L,
1160
+          'sel-line': 316L,
1161
+          'sel-line-start': 13856L,
1162
+          'selection_end': 13882L,
1163
+          'selection_start': 13882L,
1169 1164
           'zoom': 0L},
1170
-         1518902242.716],
1171
-        [loc('sources/replay.py'),
1165
+         1520683280.721],
1166
+        [loc('sources/filmix.py'),
1172 1167
          {'attrib-starts': [('Source',
1173
-                             30),
1174
-                            ('Source.get_content',
1175
-                             41)],
1176
-          'first-line': 79L,
1168
+                             31),
1169
+                            ('Source.get_streams',
1170
+                             262)],
1171
+          'first-line': 318L,
1177 1172
           'folded-linenos': [],
1178
-          'sel-line': 88L,
1179
-          'sel-line-start': 4069L,
1180
-          'selection_end': 4131L,
1181
-          'selection_start': 4128L,
1173
+          'sel-line': 327L,
1174
+          'sel-line-start': 14325L,
1175
+          'selection_end': 14325L,
1176
+          'selection_start': 14325L,
1182 1177
           'zoom': 0L},
1183
-         1518902243.216],
1184
-        [loc('sources/replay.py'),
1185
-         {'attrib-starts': [('Source',
1186
-                             30),
1187
-                            ('Source.get_content',
1188
-                             41)],
1189
-          'first-line': 89L,
1178
+         1520685621.8],
1179
+        [loc('run.py'),
1180
+         {'attrib-starts': [('Main',
1181
+                             22),
1182
+                            ('Main.play_video',
1183
+                             242)],
1184
+          'first-line': 247L,
1190 1185
           'folded-linenos': [],
1191
-          'sel-line': 98L,
1192
-          'sel-line-start': 4629L,
1193
-          'selection_end': 4659L,
1194
-          'selection_start': 4659L,
1186
+          'sel-line': 256L,
1187
+          'sel-line-start': 10058L,
1188
+          'selection_end': 10058L,
1189
+          'selection_start': 10058L,
1195 1190
           'zoom': 0L},
1196
-         1518902252.631],
1197
-        [loc('sources/replay.py'),
1198
-         {'attrib-starts': [('Source',
1199
-                             30),
1200
-                            ('Source.get_content',
1201
-                             41)],
1202
-          'first-line': 93L,
1191
+         1520685647.025],
1192
+        [loc('sources/filmix.py'),
1193
+         {'attrib-starts': [],
1194
+          'first-line': 431L,
1203 1195
           'folded-linenos': [],
1204
-          'sel-line': 100L,
1205
-          'sel-line-start': 4691L,
1206
-          'selection_end': 4753L,
1207
-          'selection_start': 4750L,
1196
+          'sel-line': 440L,
1197
+          'sel-line-start': 19309L,
1198
+          'selection_end': 19309L,
1199
+          'selection_start': 19309L,
1208 1200
           'zoom': 0L},
1209
-         1518902253.454],
1210
-        [loc('sources/replay.py'),
1211
-         {'attrib-starts': [('Source',
1212
-                             30),
1213
-                            ('Source.get_content',
1214
-                             41)],
1215
-          'first-line': 108L,
1201
+         1520685650.21],
1202
+        [loc('run.py'),
1203
+         {'attrib-starts': [('Main',
1204
+                             22),
1205
+                            ('Main.play_video',
1206
+                             242)],
1207
+          'first-line': 247L,
1216 1208
           'folded-linenos': [],
1217
-          'sel-line': 117L,
1218
-          'sel-line-start': 5571L,
1219
-          'selection_end': 5590L,
1220
-          'selection_start': 5587L,
1209
+          'sel-line': 256L,
1210
+          'sel-line-start': 10058L,
1211
+          'selection_end': 10058L,
1212
+          'selection_start': 10058L,
1221 1213
           'zoom': 0L},
1222
-         1518902255.89],
1223
-        [loc('sources/replay.py'),
1214
+         1520685674.597],
1215
+        [loc('sources/filmix.py'),
1224 1216
          {'attrib-starts': [('Source',
1225
-                             30),
1226
-                            ('Source.get_content',
1227
-                             41)],
1228
-          'first-line': 115L,
1217
+                             31),
1218
+                            ('Source.get_streams',
1219
+                             262)],
1220
+          'first-line': 285L,
1229 1221
           'folded-linenos': [],
1230
-          'sel-line': 122L,
1231
-          'sel-line-start': 5820L,
1232
-          'selection_end': 5882L,
1233
-          'selection_start': 5879L,
1222
+          'sel-line': 290L,
1223
+          'sel-line-start': 12861L,
1224
+          'selection_end': 12861L,
1225
+          'selection_start': 12861L,
1234 1226
           'zoom': 0L},
1235
-         1518902256.998],
1236
-        [loc('sources/replay.py'),
1237
-         {'attrib-starts': [('Source',
1238
-                             30),
1239
-                            ('Source.get_content',
1240
-                             41)],
1241
-          'first-line': 149L,
1227
+         1520686791.424],
1228
+        [loc('run.py'),
1229
+         {'attrib-starts': [('Main',
1230
+                             22),
1231
+                            ('Main.initUI',
1232
+                             47)],
1233
+          'first-line': 90L,
1242 1234
           'folded-linenos': [],
1243
-          'sel-line': 158L,
1244
-          'sel-line-start': 7698L,
1245
-          'selection_end': 7717L,
1246
-          'selection_start': 7714L,
1235
+          'sel-line': 96L,
1236
+          'sel-line-start': 3996L,
1237
+          'selection_end': 3996L,
1238
+          'selection_start': 3996L,
1247 1239
           'zoom': 0L},
1248
-         1518902258.525],
1249
-        [loc('sources/replay.py'),
1240
+         1520686861.295],
1241
+        [loc('sources/filmix.py'),
1250 1242
          {'attrib-starts': [('Source',
1251
-                             30),
1252
-                            ('Source.get_content',
1253
-                             41)],
1254
-          'first-line': 86L,
1243
+                             31),
1244
+                            ('Source.get_streams',
1245
+                             262)],
1246
+          'first-line': 285L,
1255 1247
           'folded-linenos': [],
1256
-          'sel-line': 93L,
1257
-          'sel-line-start': 4254L,
1258
-          'selection_end': 4254L,
1259
-          'selection_start': 4254L,
1248
+          'sel-line': 290L,
1249
+          'sel-line-start': 12861L,
1250
+          'selection_end': 12861L,
1251
+          'selection_start': 12861L,
1260 1252
           'zoom': 0L},
1261
-         1518902786.933]],
1253
+         1520686867.682]],
1262 1254
         20),
1263
-        'current-loc': loc('sources/ltc.py'),
1264
-        'editor-state-list': [(loc('ContentSources.py'),
1255
+        'current-loc': loc('sources/filmix.py'),
1256
+        'editor-state-list': [(loc('run.py'),
1257
+                               {'attrib-starts': [('Main',
1258
+        22),
1259
+        ('Main.initUI',
1260
+         47)],
1261
+                                'first-line': 90L,
1262
+                                'folded-linenos': [],
1263
+                                'sel-line': 96L,
1264
+                                'sel-line-start': 3996L,
1265
+                                'selection_end': 3996L,
1266
+                                'selection_start': 3996L,
1267
+                                'zoom': 0L}),
1268
+                              (loc('ContentSources.py'),
1265 1269
                                {'attrib-starts': [('ContentSources',
1266 1270
         16),
1267 1271
         ('ContentSources.get_content',
@@ -1275,15 +1279,15 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
1275 1279
                                 'zoom': 0L}),
1276 1280
                               (loc('sources/ltc.py'),
1277 1281
                                {'attrib-starts': [('Source',
1278
-        27),
1282
+        26),
1279 1283
         ('Source.get_content',
1280
-         74)],
1281
-                                'first-line': 117L,
1284
+         73)],
1285
+                                'first-line': 116L,
1282 1286
                                 'folded-linenos': [],
1283
-                                'sel-line': 122L,
1284
-                                'sel-line-start': 5124L,
1285
-                                'selection_end': 5124L,
1286
-                                'selection_start': 5124L,
1287
+                                'sel-line': 124L,
1288
+                                'sel-line-start': 5213L,
1289
+                                'selection_end': 5232L,
1290
+                                'selection_start': 5232L,
1287 1291
                                 'zoom': 0L}),
1288 1292
                               (loc('util.py'),
1289 1293
                                {'attrib-starts': [('unescape',
@@ -1307,18 +1311,6 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
1307 1311
                                 'selection_end': 4254L,
1308 1312
                                 'selection_start': 4254L,
1309 1313
                                 'zoom': 0L}),
1310
-                              (loc('sources/cinemalive.py'),
1311
-                               {'attrib-starts': [('Source',
1312
-        29),
1313
-        ('Source.get_streams',
1314
-         166)],
1315
-                                'first-line': 176L,
1316
-                                'folded-linenos': [],
1317
-                                'sel-line': 184L,
1318
-                                'sel-line-start': 9045L,
1319
-                                'selection_end': 9087L,
1320
-                                'selection_start': 9074L,
1321
-                                'zoom': 0L}),
1322 1314
                               (loc('sources/lmt.py'),
1323 1315
                                {'attrib-starts': [],
1324 1316
                                 'first-line': 199L,
@@ -1340,26 +1332,17 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
1340 1332
                                 'selection_end': 1369L,
1341 1333
                                 'selection_start': 1369L,
1342 1334
                                 'zoom': 0L}),
1343
-                              (loc('kivy_test.py'),
1344
-                               {'attrib-starts': [],
1345
-                                'first-line': 0L,
1346
-                                'folded-linenos': [24L],
1347
-                                'sel-line': 0L,
1348
-                                'sel-line-start': 0L,
1349
-                                'selection_end': 3L,
1350
-                                'selection_start': 3L,
1351
-                                'zoom': 0L}),
1352 1335
                               (loc('sources/filmix.py'),
1353 1336
                                {'attrib-starts': [('Source',
1354 1337
         31),
1355 1338
         ('Source.get_content',
1356 1339
          56)],
1357
-                                'first-line': 79L,
1340
+                                'first-line': 144L,
1358 1341
                                 'folded-linenos': [],
1359
-                                'sel-line': 88L,
1360
-                                'sel-line-start': 3207L,
1361
-                                'selection_end': 3207L,
1362
-                                'selection_start': 3207L,
1342
+                                'sel-line': 146L,
1343
+                                'sel-line-start': 5981L,
1344
+                                'selection_end': 6012L,
1345
+                                'selection_start': 6012L,
1363 1346
                                 'zoom': 0L}),
1364 1347
                               (loc('Downloader.py'),
1365 1348
                                {'attrib-starts': [('get_header',
@@ -1371,18 +1354,6 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
1371 1354
                                 'selection_end': 8012L,
1372 1355
                                 'selection_start': 8012L,
1373 1356
                                 'zoom': 0L}),
1374
-                              (loc('run.py'),
1375
-                               {'attrib-starts': [('Main',
1376
-        22),
1377
-        ('Main.play_video',
1378
-         242)],
1379
-                                'first-line': 255L,
1380
-                                'folded-linenos': [],
1381
-                                'sel-line': 267L,
1382
-                                'sel-line-start': 10485L,
1383
-                                'selection_end': 10511L,
1384
-                                'selection_start': 10511L,
1385
-                                'zoom': 0L}),
1386 1357
                               (loc('sources/euronews.py'),
1387 1358
                                {'attrib-starts': [],
1388 1359
                                 'first-line': 302L,
@@ -1410,37 +1381,47 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
1410 1381
                                 'sel-line-start': 1587L,
1411 1382
                                 'selection_end': 1599L,
1412 1383
                                 'selection_start': 1599L,
1384
+                                'zoom': 0L}),
1385
+                              (loc('sources/config.py'),
1386
+                               {'attrib-starts': [('Source',
1387
+        12),
1388
+        ('Source.read_streams',
1389
+         36)],
1390
+                                'first-line': 44L,
1391
+                                'folded-linenos': [],
1392
+                                'sel-line': 50L,
1393
+                                'sel-line-start': 1707L,
1394
+                                'selection_end': 1772L,
1395
+                                'selection_start': 1723L,
1413 1396
                                 'zoom': 0L})],
1414 1397
         'has-focus': True,
1415 1398
         'locked': False},
1416
-        [loc('ContentSources.py'),
1399
+        [loc('run.py'),
1400
+         loc('ContentSources.py'),
1417 1401
          loc('sources/ltc.py'),
1418 1402
          loc('util.py'),
1419 1403
          loc('sources/replay.py'),
1420
-         loc('sources/cinemalive.py'),
1421 1404
          loc('sources/lmt.py'),
1422 1405
          loc('sources/filmas.py'),
1423
-         loc('kivy_test.py'),
1424 1406
          loc('sources/filmix.py'),
1425 1407
          loc('Downloader.py'),
1426
-         loc('run.py'),
1427 1408
          loc('sources/euronews.py'),
1428 1409
          loc('resolver.py'),
1429
-         loc('resolvers/cloudsany.py')]),
1430
-                               'open_files': [u'Downloader.py',
1431
-        u'kivy_test.py',
1410
+         loc('resolvers/cloudsany.py'),
1411
+         loc('sources/config.py')]),
1412
+                               'open_files': [u'ContentSources.py',
1413
+        u'Downloader.py',
1432 1414
         u'resolver.py',
1433 1415
         u'resolvers/cloudsany.py',
1434
-        u'sources/cinemalive.py',
1435 1416
         u'sources/euronews.py',
1436 1417
         u'sources/filmas.py',
1437 1418
         u'sources/lmt.py',
1438
-        u'sources/filmix.py',
1439
-        u'run.py',
1440
-        u'util.py',
1441
-        u'ContentSources.py',
1442 1419
         u'sources/replay.py',
1443
-        u'sources/ltc.py']},
1420
+        u'util.py',
1421
+        u'sources/ltc.py',
1422
+        u'sources/config.py',
1423
+        u'run.py',
1424
+        u'sources/filmix.py']},
1444 1425
         'saved_notebook_display': None,
1445 1426
         'split_percents': {0: 0.42670046472327844},
1446 1427
         'splits': 2,
@@ -1455,19 +1436,18 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
1455 1436
                          -1080,
1456 1437
                          1858,
1457 1438
                          1080)}]}
1458
-guimgr.recent-documents = [loc('sources/ltc.py'),
1439
+guimgr.recent-documents = [loc('sources/filmix.py'),
1440
+                           loc('run.py'),
1441
+                           loc('sources/config.py'),
1442
+                           loc('sources/ltc.py'),
1443
+                           loc('util.py'),
1459 1444
                            loc('sources/replay.py'),
1460 1445
                            loc('ContentSources.py'),
1461
-                           loc('util.py'),
1462
-                           loc('run.py'),
1463
-                           loc('sources/filmix.py'),
1464 1446
                            loc('resolvers/cloudsany.py'),
1465 1447
                            loc('sources/euronews.py'),
1466
-                           loc('sources/cinemalive.py'),
1467 1448
                            loc('resolver.py'),
1468 1449
                            loc('Downloader.py'),
1469 1450
                            loc('sources/filmas.py'),
1470
-                           loc('kivy_test.py'),
1471 1451
                            loc('sources/lmt.py')]
1472 1452
 guimgr.visual-state = {loc('../../../Python25/Lib/BeautifulSoup.py'): {'attr'\
1473 1453
         'ib-starts': [('NavigableString',
@@ -1638,12 +1618,12 @@ guimgr.visual-state = {loc('../../../Python25/Lib/BeautifulSoup.py'): {'attr'\
1638 1618
         'selection_end': 3450,
1639 1619
         'selection_start': 3449},
1640 1620
                        loc('kivy_test.py'): {'attrib-starts': [],
1641
-        'first-line': 72L,
1642
-        'folded-linenos': [],
1643
-        'sel-line': 27L,
1644
-        'sel-line-start': 691L,
1645
-        'selection_end': 705L,
1646
-        'selection_start': 702L,
1621
+        'first-line': 0L,
1622
+        'folded-linenos': [24L],
1623
+        'sel-line': 0L,
1624
+        'sel-line-start': 0L,
1625
+        'selection_end': 3L,
1626
+        'selection_start': 3L,
1647 1627
         'zoom': 0L},
1648 1628
                        loc('kivy_test2.py'): {'attrib-starts': [],
1649 1629
         'first-line': 0L,
@@ -1706,13 +1686,17 @@ guimgr.visual-state = {loc('../../../Python25/Lib/BeautifulSoup.py'): {'attr'\
1706 1686
         'selection_end': 4550L,
1707 1687
         'selection_start': 4550L,
1708 1688
         'zoom': 0L},
1709
-                       loc('sources/cinemalive.py'): {'attrib-starts': [],
1710
-        'first-line': 197L,
1689
+                       loc('sources/cinemalive.py'): {'attrib-starts': [('So'\
1690
+        'urce',
1691
+        29),
1692
+        ('Source.get_streams',
1693
+         166)],
1694
+        'first-line': 176L,
1711 1695
         'folded-linenos': [],
1712
-        'sel-line': 202L,
1713
-        'sel-line-start': 9589L,
1714
-        'selection_end': 9603L,
1715
-        'selection_start': 9603L,
1696
+        'sel-line': 184L,
1697
+        'sel-line-start': 9047L,
1698
+        'selection_end': 9087L,
1699
+        'selection_start': 9074L,
1716 1700
         'zoom': 0L},
1717 1701
                        loc('sources/config.py'): {'attrib-starts': [('Source',
1718 1702
         12),

+ 75
- 71
sources/filmix.py View File

@@ -132,40 +132,39 @@ Cookie: FILMIXNET=%s;
132 132
             key = m.group(3) if m else ""
133 133
             js = self.get_movie_info(vid,key)
134 134
             translations = js["message"]["translations"]["html5"]
135
+            items = []
135 136
             for pl  in translations:
136 137
                 if translations[pl].startswith("http"):
137 138
                     continue
138 139
                 pl_link = translations[pl]
139 140
                 lang = pl.encode("utf8")
140
-                break
141
-            else:
142
-                raise Exception("No episodes list found!")
143
-            #pl_link = js["message"]["translations"]["flash"].values()[0]
144
-            #  TODO process several players, currently taking the first
145
-            #TODO - kļuda, vairs nesradā
146
-            if not pl_link.startswith("http"):
147 141
                 pl_link = self.decode_direct_media_url(pl_link)
148
-            js = self._http_request(pl_link)
149
-            js = self.decode_direct_media_url(js)
150
-            js = json.loads(js)
151
-            if "s" in qs:
152
-                s = int(qs["s"])
153
-                for i,ep in enumerate(js["playlist"][s-1]["playlist"]):
154
-                    title = title0+" - "+js["playlist"][s-1]["playlist"][i]["comment"].encode("utf8")
155
-                    serie = js["playlist"][s-1]["playlist"][i]["comment"].encode("utf8")
156
-                    data2 = data+"&e=%s"%(i+1)
157
-                    desc = serie +"\n"+desc0
158
-                    content.append((title,self.name+"::"+data2,img,desc))
159
-            else:
160
-                for i,ep in enumerate(js["playlist"]):
161
-                    title = title0 +" - "+js["playlist"][i]["comment"].encode("utf8")
162
-                    serie = js["playlist"][i]["comment"].encode("utf8")
163
-                    if "file" in ep and ep["file"]:
164
-                        data2 = data+"?e=%s"%(i+1)
165
-                    else:
166
-                        data2 = data+"?s=%s"%(i+1)
167
-                    desc = serie +"\n"+desc0
168
-                    content.append((title,self.name+"::"+data2,img,desc))
142
+                js = self._http_request(pl_link)
143
+                js = self.decode_direct_media_url(js)
144
+                js = json.loads(js)
145
+                if "s" in qs:
146
+                    s = int(qs["s"])
147
+                    if s > len(js["playlist"]): continue
148
+                    for i,ep in enumerate(js["playlist"][s-1]["playlist"]):
149
+                        title = title0+" - "+js["playlist"][s-1]["playlist"][i]["comment"].encode("utf8")
150
+                        serie = js["playlist"][s-1]["playlist"][i]["comment"].encode("utf8")
151
+                        data2 = data+"&e=%s"%(i+1)
152
+                        desc = serie +"\n"+desc0
153
+                        if data2 not in items:
154
+                            items.append(data2)
155
+                            content.append((title,self.name+"::"+data2,img,desc))
156
+                else:
157
+                    for i,ep in enumerate(js["playlist"]):
158
+                        title = title0 +" - "+js["playlist"][i]["comment"].encode("utf8")
159
+                        serie = js["playlist"][i]["comment"].encode("utf8")
160
+                        if "file" in ep and ep["file"]:
161
+                            data2 = data+"?e=%s"%(i+1)
162
+                        else:
163
+                            data2 = data+"?s=%s"%(i+1)
164
+                        desc = serie +"\n"+desc0
165
+                        if data2 not in items:
166
+                            items.append(data2)
167
+                            content.append((title,self.name+"::"+data2,img,desc))
169 168
             return content
170 169
             #r = self._http_request(url)
171 170
 
@@ -289,50 +288,15 @@ Cookie: FILMIXNET=%s;
289 288
         key = m.group(3) if m else ""
290 289
         js = self.get_movie_info(vid,key)
291 290
         translations = js["message"]["translations"]["html5"]
292
-        for pl in translations:
293
-            if translations[pl].startswith("http"):
294
-                continue
295
-            pl_link = translations[pl]
296
-            lang = pl.encode("utf8")
297
-            break
298
-        else:
299
-            raise Exception("No episodes list found!")
300
-        if not pl_link.startswith("http"):
301
-            pl_link = self.decode_direct_media_url(pl_link)
302 291
 
303 292
         if not series : # Filma
304
-            url0 = pl_link
305
-            streams2 = self.get_streams2(url0)
306
-            for st in streams2:
307
-                stream = util.item()
308
-                stream["url"]=st[1]
309
-                stream["lang"]=lang
310
-                stream["quality"]=st[0]
311
-                stream["name"]= title
312
-                stream["desc"]=desc
313
-                streams.append(stream)
314
-            return streams
315
-
316
-        else: # Seriāls
317
-            #pl_link = video_link
318
-            js = self._http_request(pl_link)
319
-            js = self.decode_direct_media_url(js)
320
-            js = json.loads(js)
321
-            if "e" in qs:
322
-                if "s" in qs:
323
-                    s = int(qs["s"])
324
-                else:
325
-                    s = None
326
-                e = int(qs["e"])
327
-                if s: # sezona + epizode
328
-                    serie = js["playlist"][s-1]["playlist"][e-1]["comment"].encode("utf8")
329
-                    title = title0+" - "+ serie
330
-                    url0 = js["playlist"][s-1]["playlist"][e-1]["file"].encode("utf8")
331
-                else: # tikai epizode, nav sezonas
332
-                    title = title0 +" - "+js["playlist"][e-1]["comment"].encode("utf8")
333
-                    serie = js["playlist"][e-1]["comment"].encode("utf8")
334
-                    url0 = js["playlist"][e-1]["file"].encode("utf8")
335
-                streams2 = self.get_streams2(url0)
293
+            for pl in translations:
294
+                if translations[pl].startswith("http"):
295
+                    continue
296
+                pl_link = translations[pl]
297
+                lang = pl.encode("utf8")
298
+                pl_link = self.decode_direct_media_url(pl_link)
299
+                streams2 = self.get_streams2(pl_link)
336 300
                 for st in streams2:
337 301
                     stream = util.item()
338 302
                     stream["url"]=st[1]
@@ -341,7 +305,47 @@ Cookie: FILMIXNET=%s;
341 305
                     stream["name"]= title
342 306
                     stream["desc"]=desc
343 307
                     streams.append(stream)
344
-                return streams
308
+            return streams
309
+
310
+        else: # Seriāls
311
+            for pl in translations:
312
+                if translations[pl].startswith("http"):
313
+                    continue
314
+                pl_link = translations[pl]
315
+                lang = pl.encode("utf8")
316
+                pl_link = self.decode_direct_media_url(pl_link)
317
+
318
+                #pl_link = video_link
319
+                js = self._http_request(pl_link)
320
+                js = self.decode_direct_media_url(js)
321
+                js = json.loads(js)
322
+                playlist =  js["playlist"]
323
+                if "e" in qs:
324
+                    if "s" in qs:
325
+                        s = int(qs["s"])
326
+                    else:
327
+                        s = None
328
+                    e = int(qs["e"])
329
+                    if s: # sezona + epizode
330
+                        if s > len(js["playlist"]) or e > len(js["playlist"][s-1]["playlist"]): continue
331
+                        serie = js["playlist"][s-1]["playlist"][e-1]["comment"].encode("utf8")
332
+                        title = title0+" - "+ serie
333
+                        url0 = js["playlist"][s-1]["playlist"][e-1]["file"].encode("utf8")
334
+                    else: # tikai epizode, nav sezonas
335
+                        if e > len(js["playlist"]): continue
336
+                        title = title0 +" - "+js["playlist"][e-1]["comment"].encode("utf8")
337
+                        serie = js["playlist"][e-1]["comment"].encode("utf8")
338
+                        url0 = js["playlist"][e-1]["file"].encode("utf8")
339
+                    streams2 = self.get_streams2(url0)
340
+                    for st in streams2:
341
+                        stream = util.item()
342
+                        stream["url"]=st[1]
343
+                        stream["lang"]=lang
344
+                        stream["quality"]=st[0]
345
+                        stream["name"]= title
346
+                        stream["desc"]=desc
347
+                        streams.append(stream)
348
+            return streams
345 349
 
346 350
     def call(self, data,params=None,headers=None,lang=""):
347 351
         if not headers: headers = self.headers