Ivars пре 6 година
родитељ
комит
b0e08f1df5
2 измењених фајлова са 187 додато и 165 уклоњено
  1. 186
    164
      project.wpr
  2. 1
    1
      sources/enigma2.py

+ 186
- 164
project.wpr Прегледај датотеку

@@ -39,7 +39,11 @@ proj.launch-config = {loc('ContentSources.py'): ('project',
39 39
         (u'home',
40 40
          ''))}
41 41
 [user attributes]
42
-debug.breakpoints = {loc('Downloader.py'): {94: (0,
42
+debug.breakpoints = {loc('../../../../../../../../../../Data/Programming/Kodi/plugin.video.playstream/resources/lib/content/sources/enigma2.py'): {122L: (0,
43
+        None,
44
+        1,
45
+        0)},
46
+                     loc('Downloader.py'): {94: (0,
43 47
         None,
44 48
         1,
45 49
         0),
@@ -333,7 +337,48 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
333 337
                               ('browser',
334 338
                                'tall',
335 339
                                0,
336
-                               {'all_tree_states': {loc('../../../$Setup/Python/Libs/pyglet-1.0-docs/examples/programming_guide/hello_world.py'): {'c'\
340
+                               {'all_tree_states': {loc('../../../../../../../Python27/lib/lib-tk/Tkinter.py'): {'e'\
341
+        'xpanded-nodes': [],
342
+        'selected-nodes': [],
343
+        'top-node': [('function def',
344
+                      loc('../../../../../../../Python27/lib/lib-tk/Tkinter.py'),
345
+                      'At')]},
346
+        loc('../../../../../Python27/lib/lib-tk/Tkinter.py'): {'expanded-nod'\
347
+        'es': [],
348
+        'selected-nodes': [],
349
+        'top-node': [('function def',
350
+                      loc('../../../../../Python27/lib/lib-tk/Tkinter.py'),
351
+                      'At')]},
352
+        loc('../../../../../Python27/lib/lib-tk/tkCommonDialog.py'): {'expan'\
353
+        'ded-nodes': [],
354
+        'selected-nodes': [],
355
+        'top-node': [('class def',
356
+                      loc('../../../../../Python27/lib/lib-tk/tkCommonDialog.py'),
357
+                      'Dialog')]},
358
+        loc('../../../../../Python27/lib/lib-tk/tkMessageBox.py'): {'expande'\
359
+        'd-nodes': [],
360
+        'selected-nodes': [],
361
+        'top-node': [('generic attribute',
362
+                      loc('../../../../../Python27/lib/lib-tk/tkMessageBox.py'),
363
+                      'ABORT')]},
364
+        loc('../../../../../Python27/lib/lib-tk/tkSimpleDialog.py'): {'expan'\
365
+        'ded-nodes': [],
366
+        'selected-nodes': [],
367
+        'top-node': [('function def',
368
+                      loc('../../../../../Python27/lib/lib-tk/tkSimpleDialog.py'),
369
+                      'askfloat')]},
370
+        loc('../../../../../Python27/lib/lib-tk/ttk.py'): {'expanded-nodes': [],
371
+        'selected-nodes': [],
372
+        'top-node': [('class def',
373
+                      loc('../../../../../Python27/lib/lib-tk/ttk.py'),
374
+                      'Button')]},
375
+        loc('../../../../../Python27/lib/site-packages/PIL/Image.py'): {'exp'\
376
+        'anded-nodes': [],
377
+        'selected-nodes': [],
378
+        'top-node': [('generic attribute',
379
+                      loc('../../../../../Python27/lib/site-packages/PIL/Image.py'),
380
+                      'ADAPTIVE')]},
381
+        loc('../../../$Setup/Python/Libs/pyglet-1.0-docs/examples/programming_guide/hello_world.py'): {'c'\
337 382
         'olumn-widths': [1.0],
338 383
         'expanded-nodes': [],
339 384
         'selected-nodes': [],
@@ -815,59 +860,18 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
815 860
                                       'top-node': [('generic attribute',
816 861
         loc('../vietas/vietas2.py'),
817 862
         'd_lat')]},
818
-        loc('../../../../../Python27/lib/lib-tk/Tkinter.py'): {'expanded-nod'\
819
-        'es': [],
820
-        'selected-nodes': [],
821
-        'top-node': [('function def',
822
-                      loc('../../../../../Python27/lib/lib-tk/Tkinter.py'),
823
-                      'At')]},
824
-        loc('../../../../../Python27/lib/lib-tk/tkCommonDialog.py'): {'expan'\
825
-        'ded-nodes': [],
826
-        'selected-nodes': [],
827
-        'top-node': [('class def',
828
-                      loc('../../../../../Python27/lib/lib-tk/tkCommonDialog.py'),
829
-                      'Dialog')]},
830
-        loc('../../../../../Python27/lib/lib-tk/tkMessageBox.py'): {'expande'\
831
-        'd-nodes': [],
832
-        'selected-nodes': [],
833
-        'top-node': [('generic attribute',
834
-                      loc('../../../../../Python27/lib/lib-tk/tkMessageBox.py'),
835
-                      'ABORT')]},
836
-        loc('../../../../../Python27/lib/lib-tk/tkSimpleDialog.py'): {'expan'\
837
-        'ded-nodes': [],
838
-        'selected-nodes': [],
839
-        'top-node': [('function def',
840
-                      loc('../../../../../Python27/lib/lib-tk/tkSimpleDialog.py'),
841
-                      'askfloat')]},
842
-        loc('../../../../../Python27/lib/lib-tk/ttk.py'): {'expanded-nodes': [],
843
-        'selected-nodes': [],
844
-        'top-node': [('class def',
845
-                      loc('../../../../../Python27/lib/lib-tk/ttk.py'),
846
-                      'Button')]},
847
-        loc('../../../../../Python27/lib/site-packages/PIL/Image.py'): {'exp'\
848
-        'anded-nodes': [],
849
-        'selected-nodes': [],
850
-        'top-node': [('generic attribute',
851
-                      loc('../../../../../Python27/lib/site-packages/PIL/Image.py'),
852
-                      'ADAPTIVE')]},
853
-        loc('../../../../../../../Python27/lib/lib-tk/Tkinter.py'): {'expand'\
854
-        'ed-nodes': [],
855
-        'selected-nodes': [],
856
-        'top-node': [('function def',
857
-                      loc('../../../../../../../Python27/lib/lib-tk/Tkinter.py'),
858
-                      'At')]},
859
-        loc('unknown:<untitled> #5'): {'expanded-nodes': [],
863
+        loc('unknown:<untitled> #4'): {'expanded-nodes': [],
860 864
                                        'selected-nodes': [],
861 865
                                        'top-node': None},
862
-        loc('unknown:<untitled> #6'): {'expanded-nodes': [],
866
+        loc('unknown:<untitled> #6'): {'column-widths': [1.0],
867
+                                       'expanded-nodes': [],
863 868
                                        'selected-nodes': [],
864 869
                                        'top-node': None},
865
-        loc('unknown:<untitled> #3'): {'column-widths': [1.0],
870
+        loc('unknown:<untitled> #5'): {'column-widths': [1.0],
866 871
                                        'expanded-nodes': [],
867 872
                                        'selected-nodes': [],
868 873
                                        'top-node': None},
869
-        loc('unknown:<untitled> #4'): {'column-widths': [1.0],
870
-                                       'expanded-nodes': [],
874
+        loc('unknown:<untitled> #3'): {'expanded-nodes': [],
871 875
                                        'selected-nodes': [],
872 876
                                        'top-node': None}},
873 877
                                 'browse_mode': u'Current Module',
@@ -1061,42 +1065,19 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
1061 1065
                        'selection_end': 174L,
1062 1066
                        'selection_start': 174L,
1063 1067
                        'zoom': 0L})],
1064
-        'primary_view_state': {'editor_states': ({'bookmarks': ([[loc('run.py'),
1065
-        {'attrib-starts': [],
1066
-         'first-line': 717L,
1068
+        'primary_view_state': {'editor_states': ({'bookmarks': ([[loc('sources/enigma2.py'),
1069
+        {'attrib-starts': [('Source',
1070
+                            31),
1071
+                           ('Source.get_content',
1072
+                            56)],
1073
+         'first-line': 49L,
1067 1074
          'folded-linenos': [],
1068
-         'sel-line': 733L,
1069
-         'sel-line-start': 29517L,
1070
-         'selection_end': 29528L,
1071
-         'selection_start': 29521L,
1075
+         'sel-line': 58L,
1076
+         'sel-line-start': 2053L,
1077
+         'selection_end': 2053L,
1078
+         'selection_start': 2053L,
1072 1079
          'zoom': 0L},
1073
-        1536008661.996],
1074
-        [loc('sources/enigma2.py'),
1075
-         {'attrib-starts': [('Source',
1076
-                             31),
1077
-                            ('Source.get_content',
1078
-                             56)],
1079
-          'first-line': 45L,
1080
-          'folded-linenos': [],
1081
-          'sel-line': 58L,
1082
-          'sel-line-start': 2053L,
1083
-          'selection_end': 2112L,
1084
-          'selection_start': 2112L,
1085
-          'zoom': 0L},
1086
-         1536008669.221],
1087
-        [loc('sources/enigma2.py'),
1088
-         {'attrib-starts': [('Source',
1089
-                             31),
1090
-                            ('Source.get_content',
1091
-                             56)],
1092
-          'first-line': 49L,
1093
-          'folded-linenos': [],
1094
-          'sel-line': 58L,
1095
-          'sel-line-start': 2053L,
1096
-          'selection_end': 2053L,
1097
-          'selection_start': 2053L,
1098
-          'zoom': 0L},
1099
-         1536008716.399],
1080
+        1536008716.399],
1100 1081
         [loc('sources/enigma2.py'),
1101 1082
          {'attrib-starts': [('Source',
1102 1083
                              31),
@@ -1308,9 +1289,35 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
1308 1289
           'selection_end': 3554L,
1309 1290
           'selection_start': 3540L,
1310 1291
           'zoom': 0L},
1311
-         1536009988.528]],
1292
+         1536009988.528],
1293
+        [loc('sources/enigma2.py'),
1294
+         {'attrib-starts': [('Source',
1295
+                             31),
1296
+                            ('Source.__init__',
1297
+                             33)],
1298
+          'first-line': 21L,
1299
+          'folded-linenos': [],
1300
+          'sel-line': 47L,
1301
+          'sel-line-start': 1575L,
1302
+          'selection_end': 1630L,
1303
+          'selection_start': 1630L,
1304
+          'zoom': 0L},
1305
+         1536016931.751],
1306
+        [loc('../../../../../../../../../../Data/Programming/Kodi/plugin.video.playstream/resources/lib/content/sources/enigma2.py'),
1307
+         {'attrib-starts': [('Source',
1308
+                             31),
1309
+                            ('Source.__init__',
1310
+                             33)],
1311
+          'first-line': 31L,
1312
+          'folded-linenos': [],
1313
+          'sel-line': 48L,
1314
+          'sel-line-start': 1665L,
1315
+          'selection_end': 1684L,
1316
+          'selection_start': 1684L,
1317
+          'zoom': 0L},
1318
+         1536016982.591]],
1312 1319
         20),
1313
-        'current-loc': loc('sources/enigma2.py'),
1320
+        'current-loc': loc('../../../../../../../../../../Data/Programming/Kodi/plugin.video.playstream/resources/lib/content/sources/enigma2.py'),
1314 1321
         'editor-state-list': [(loc('run.py'),
1315 1322
                                {'attrib-starts': [],
1316 1323
                                 'first-line': 717L,
@@ -1450,6 +1457,18 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
1450 1457
                                 'sel-line-start': 1575L,
1451 1458
                                 'selection_end': 1630L,
1452 1459
                                 'selection_start': 1630L,
1460
+                                'zoom': 0L}),
1461
+                              (loc('../../../../../../../../../../Data/Programming/Kodi/plugin.video.playstream/resources/lib/content/sources/enigma2.py'),
1462
+                               {'attrib-starts': [('Source',
1463
+        31),
1464
+        ('Source.get_streams',
1465
+         125)],
1466
+                                'first-line': 115L,
1467
+                                'folded-linenos': [],
1468
+                                'sel-line': 140L,
1469
+                                'sel-line-start': 5399L,
1470
+                                'selection_end': 5439L,
1471
+                                'selection_start': 5439L,
1453 1472
                                 'zoom': 0L})],
1454 1473
         'has-focus': True,
1455 1474
         'locked': False},
@@ -1463,7 +1482,8 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
1463 1482
          loc('changelog.md'),
1464 1483
          loc('sources/filmix.py'),
1465 1484
          loc('sources/filmas.py'),
1466
-         loc('sources/enigma2.py')]),
1485
+         loc('sources/enigma2.py'),
1486
+         loc('../../../../../../../../../../Data/Programming/Kodi/plugin.video.playstream/resources/lib/content/sources/enigma2.py')]),
1467 1487
                                'open_files': [u'changelog.md',
1468 1488
         u'run.py',
1469 1489
         u'sources/config.py',
@@ -1474,7 +1494,8 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
1474 1494
         u'sources/replay.py',
1475 1495
         u'sources/tvplay.py',
1476 1496
         u'util.py',
1477
-        u'sources/enigma2.py']},
1497
+        u'sources/enigma2.py',
1498
+        u'../../../../../../../../../../Data/Programming/Kodi/plugin.video.playstream/resources/lib/content/sources/enigma2.py']},
1478 1499
         'saved_notebook_display': None,
1479 1500
         'split_percents': {0: 0.587782340862423},
1480 1501
         'splits': 2,
@@ -1489,7 +1510,8 @@ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
1489 1510
                          0,
1490 1511
                          2393,
1491 1512
                          1440)}]}
1492
-guimgr.recent-documents = [loc('sources/enigma2.py'),
1513
+guimgr.recent-documents = [loc('../../../../../../../../../../Data/Programming/Kodi/plugin.video.playstream/resources/lib/content/sources/enigma2.py'),
1514
+                           loc('sources/enigma2.py'),
1493 1515
                            loc('util.py'),
1494 1516
                            loc('run.py'),
1495 1517
                            loc('sources/ltc.py'),
@@ -1500,7 +1522,83 @@ guimgr.recent-documents = [loc('sources/enigma2.py'),
1500 1522
                            loc('sources/filmas.py'),
1501 1523
                            loc('changelog.md'),
1502 1524
                            loc('sources/config.py')]
1503
-guimgr.visual-state = {loc('../../../Python25/Lib/BeautifulSoup.py'): {'attr'\
1525
+guimgr.visual-state = {loc('../../../../../../../Python27/lib/lib-tk/Tkinter.py'): {'a'\
1526
+        'ttrib-starts': [],
1527
+        'first-line': 0L,
1528
+        'folded-linenos': [],
1529
+        'sel-line': 0L,
1530
+        'sel-line-start': 0L,
1531
+        'selection_end': 0L,
1532
+        'selection_start': 0L,
1533
+        'zoom': 0L},
1534
+                       loc('../../../../../Python27/lib/ftplib.py'): {'attri'\
1535
+        'b-starts': [],
1536
+        'first-line': 0L,
1537
+        'folded-linenos': [],
1538
+        'sel-line': 0L,
1539
+        'sel-line-start': 0L,
1540
+        'selection_end': 0L,
1541
+        'selection_start': 0L,
1542
+        'zoom': 0L},
1543
+                       loc('../../../../../Python27/lib/lib-tk/Tkinter.py'): {'a'\
1544
+        'ttrib-starts': [('CallWrapper',
1545
+                          1528),
1546
+                         ('CallWrapper.__call__',
1547
+                          1536)],
1548
+        'first-line': 1537L,
1549
+        'folded-linenos': [],
1550
+        'sel-line': 1542L,
1551
+        'sel-line-start': 60799L,
1552
+        'selection_end': 60799L,
1553
+        'selection_start': 60799L,
1554
+        'zoom': 0L},
1555
+                       loc('../../../../../Python27/lib/lib-tk/tkCommonDialog.py'): {'a'\
1556
+        'ttrib-starts': [('Dialog',
1557
+                          12)],
1558
+        'first-line': 12L,
1559
+        'folded-linenos': [],
1560
+        'sel-line': 12L,
1561
+        'sel-line-start': 298L,
1562
+        'selection_end': 298L,
1563
+        'selection_start': 298L,
1564
+        'zoom': 0L},
1565
+                       loc('../../../../../Python27/lib/lib-tk/tkSimpleDialog.py'): {'a'\
1566
+        'ttrib-starts': [('Dialog',
1567
+                          29),
1568
+                         ('Dialog.__init__',
1569
+                          36)],
1570
+        'first-line': 61L,
1571
+        'folded-linenos': [],
1572
+        'sel-line': 76L,
1573
+        'sel-line-start': 1627L,
1574
+        'selection_end': 1686L,
1575
+        'selection_start': 1686L,
1576
+        'zoom': 0L},
1577
+                       loc('../../../../../Python27/lib/site-packages/requests/adapters.py'): {'a'\
1578
+        'ttrib-starts': [('HTTPAdapter',
1579
+                          80),
1580
+                         ('HTTPAdapter.send',
1581
+                          387)],
1582
+        'first-line': 493L,
1583
+        'folded-linenos': [],
1584
+        'sel-line': 505L,
1585
+        'sel-line-start': 20166L,
1586
+        'selection_end': 20166L,
1587
+        'selection_start': 20166L,
1588
+        'zoom': 0L},
1589
+                       loc('../../../../../Python27/lib/site-packages/requests/models.py'): {'a'\
1590
+        'ttrib-starts': [('Response',
1591
+                          577),
1592
+                         ('Response.content',
1593
+                          810)],
1594
+        'first-line': 819L,
1595
+        'folded-linenos': [],
1596
+        'sel-line': 827L,
1597
+        'sel-line-start': 29594L,
1598
+        'selection_end': 29594L,
1599
+        'selection_start': 29594L,
1600
+        'zoom': 0L},
1601
+                       loc('../../../Python25/Lib/BeautifulSoup.py'): {'attr'\
1504 1602
         'ib-starts': [('NavigableString',
1505 1603
                        354),
1506 1604
                       ('NavigableString.__getattr__',
@@ -1993,82 +2091,6 @@ guimgr.visual-state = {loc('../../../Python25/Lib/BeautifulSoup.py'): {'attr'\
1993 2091
         'sel-line-start': 0,
1994 2092
         'selection_end': 1,
1995 2093
         'selection_start': 1},
1996
-                       loc('../../../../../Python27/lib/ftplib.py'): {'attri'\
1997
-        'b-starts': [],
1998
-        'first-line': 0L,
1999
-        'folded-linenos': [],
2000
-        'sel-line': 0L,
2001
-        'sel-line-start': 0L,
2002
-        'selection_end': 0L,
2003
-        'selection_start': 0L,
2004
-        'zoom': 0L},
2005
-                       loc('../../../../../Python27/lib/lib-tk/Tkinter.py'): {'a'\
2006
-        'ttrib-starts': [('CallWrapper',
2007
-                          1528),
2008
-                         ('CallWrapper.__call__',
2009
-                          1536)],
2010
-        'first-line': 1537L,
2011
-        'folded-linenos': [],
2012
-        'sel-line': 1542L,
2013
-        'sel-line-start': 60799L,
2014
-        'selection_end': 60799L,
2015
-        'selection_start': 60799L,
2016
-        'zoom': 0L},
2017
-                       loc('../../../../../Python27/lib/lib-tk/tkCommonDialog.py'): {'a'\
2018
-        'ttrib-starts': [('Dialog',
2019
-                          12)],
2020
-        'first-line': 12L,
2021
-        'folded-linenos': [],
2022
-        'sel-line': 12L,
2023
-        'sel-line-start': 298L,
2024
-        'selection_end': 298L,
2025
-        'selection_start': 298L,
2026
-        'zoom': 0L},
2027
-                       loc('../../../../../Python27/lib/lib-tk/tkSimpleDialog.py'): {'a'\
2028
-        'ttrib-starts': [('Dialog',
2029
-                          29),
2030
-                         ('Dialog.__init__',
2031
-                          36)],
2032
-        'first-line': 61L,
2033
-        'folded-linenos': [],
2034
-        'sel-line': 76L,
2035
-        'sel-line-start': 1627L,
2036
-        'selection_end': 1686L,
2037
-        'selection_start': 1686L,
2038
-        'zoom': 0L},
2039
-                       loc('../../../../../Python27/lib/site-packages/requests/adapters.py'): {'a'\
2040
-        'ttrib-starts': [('HTTPAdapter',
2041
-                          80),
2042
-                         ('HTTPAdapter.send',
2043
-                          387)],
2044
-        'first-line': 493L,
2045
-        'folded-linenos': [],
2046
-        'sel-line': 505L,
2047
-        'sel-line-start': 20166L,
2048
-        'selection_end': 20166L,
2049
-        'selection_start': 20166L,
2050
-        'zoom': 0L},
2051
-                       loc('../../../../../Python27/lib/site-packages/requests/models.py'): {'a'\
2052
-        'ttrib-starts': [('Response',
2053
-                          577),
2054
-                         ('Response.content',
2055
-                          810)],
2056
-        'first-line': 819L,
2057
-        'folded-linenos': [],
2058
-        'sel-line': 827L,
2059
-        'sel-line-start': 29594L,
2060
-        'selection_end': 29594L,
2061
-        'selection_start': 29594L,
2062
-        'zoom': 0L},
2063
-                       loc('../../../../../../../Python27/lib/lib-tk/Tkinter.py'): {'a'\
2064
-        'ttrib-starts': [],
2065
-        'first-line': 0L,
2066
-        'folded-linenos': [],
2067
-        'sel-line': 0L,
2068
-        'sel-line-start': 0L,
2069
-        'selection_end': 0L,
2070
-        'selection_start': 0L,
2071
-        'zoom': 0L},
2072 2094
                        loc('x-wingide-zip://C:/Python25/Lib/site-packages/argparse-1.1-py2.5.egg//argparse.py'): {'a'\
2073 2095
         'ttrib-starts': [('_ActionsContainer',
2074 2096
                           1187),

+ 1
- 1
sources/enigma2.py Прегледај датотеку

@@ -138,7 +138,7 @@ Accept-Language: en-US,en;q=0.5
138 138
             event = r2["now"]
139 139
         title, img, desc = self.get_title_desc(event)
140 140
 
141
-        r = self.call(data)
141
+        r = self._http_request(self.url+data)
142 142
         m =  re.search("(http(s)*:.+)", r)
143 143
         if not m:
144 144
             raise Exception("No streams found!")