Enigma2 plugin to dowload and create channels picons files form lyngsat.com

get_picons.wpu 21KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544
  1. #!wing
  2. #!version=5.0
  3. ##################################################################
  4. # Wing IDE project file : User-specific branch #
  5. ##################################################################
  6. [user attributes]
  7. debug.recent-run-args = {loc('get_picons.py'): [u'-e enigma2 -f picon -s 49 -o \n\n\n',
  8. u'-e enigma2 -f picon -s 49 -o\n\n\n',
  9. u'-e enigma2 -f picon -s 49 -d\n\n\n',
  10. u'-e enigma2 -f piconHD -s 3592 -d\n\n\n',
  11. u'-e enigma2 -f piconHD -s 3592 \n\n',
  12. u'-e enigma2 -f piconHD -s 3592 -o\n',
  13. u'-e enigma2 -f piconHD -s 3592\n',
  14. u'-e enigma2 -f piconsHD -s 3592\n',
  15. u'-e enigma2 -f . -s 3592\n',
  16. u'-e enigma2 -f . -s 49\n',
  17. u'-e enigma2 -f . -s 4.9\n',
  18. u'-e enigma2 -f . -d -s 4.9\n',
  19. u'-e enigma2 -f . -d\n']}
  20. guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
  21. 'windows': [{'name': 'hO050WdOTcAgrxElFPSuy7htEQ'\
  22. 'RSpUFE',
  23. 'size-state': 'maximized',
  24. 'type': 'dock',
  25. 'view': {'area': 'tall',
  26. 'constraint': None,
  27. 'current_pages': [0,
  28. 0],
  29. 'full-screen': False,
  30. 'notebook_display': 'normal',
  31. 'notebook_percent': 0.25,
  32. 'override_title': None,
  33. 'pagelist': [('project',
  34. 'tall',
  35. 0,
  36. {'tree-state': {'file-sort-method': 'by name',
  37. 'list-files-first': False,
  38. 'tree-states': {'deep': {'expanded-nodes': [],
  39. 'selected-nodes': [(10,)],
  40. 'top-node': (0,)}},
  41. 'tree-style': 'deep'}}),
  42. ('browser',
  43. 'tall',
  44. 0,
  45. {}),
  46. ('snippets',
  47. 'tall',
  48. 0,
  49. {}),
  50. ('source-assistant',
  51. 'tall',
  52. 2,
  53. {}),
  54. ('debug-stack',
  55. 'tall',
  56. 1,
  57. {}),
  58. ('indent',
  59. 'tall',
  60. 2,
  61. {})],
  62. 'primary_view_state': {'area': 'wide',
  63. 'constraint': None,
  64. 'current_pages': [1,
  65. 0],
  66. 'notebook_display': 'normal',
  67. 'notebook_percent': 0.30000000000000004,
  68. 'override_title': None,
  69. 'pagelist': [('batch-search',
  70. 'wide',
  71. 0,
  72. {'fScope': {'fFileSetName': u'All Source Files',
  73. 'fLocation': None,
  74. 'fRecursive': True,
  75. 'fType': 'project-files'},
  76. 'fSearchSpec': {'fEndPos': None,
  77. 'fIncludeLinenos': True,
  78. 'fInterpretBackslashes': False,
  79. 'fMatchCase': False,
  80. 'fOmitBinary': True,
  81. 'fRegexFlags': 46,
  82. 'fReplaceText': u'',
  83. 'fReverse': False,
  84. 'fSearchText': u'',
  85. 'fStartPos': 0,
  86. 'fStyle': 'text',
  87. 'fWholeWords': False,
  88. 'fWrap': True},
  89. 'fUIOptions': {'fAutoBackground': True,
  90. 'fFilePrefix': 'short-file',
  91. 'fFindAfterReplace': True,
  92. 'fInSelection': False,
  93. 'fIncremental': True,
  94. 'fReplaceOnDisk': False,
  95. 'fShowFirstMatch': False,
  96. 'fShowLineno': True,
  97. 'fShowReplaceWidgets': False},
  98. 'replace-entry-expanded': False,
  99. 'search-entry-expanded': False}),
  100. ('interactive-search',
  101. 'wide',
  102. 0,
  103. {'fScope': {'fFileSetName': u'All Source Files',
  104. 'fLocation': None,
  105. 'fRecursive': True,
  106. 'fType': 'project-files'},
  107. 'fSearchSpec': {'fEndPos': None,
  108. 'fIncludeLinenos': True,
  109. 'fInterpretBackslashes': False,
  110. 'fMatchCase': False,
  111. 'fOmitBinary': True,
  112. 'fRegexFlags': 46,
  113. 'fReplaceText': u'',
  114. 'fReverse': False,
  115. 'fSearchText': u'headers',
  116. 'fStartPos': 0,
  117. 'fStyle': 'text',
  118. 'fWholeWords': False,
  119. 'fWrap': True},
  120. 'fUIOptions': {'fAutoBackground': True,
  121. 'fFilePrefix': 'short-file',
  122. 'fFindAfterReplace': True,
  123. 'fInSelection': False,
  124. 'fIncremental': True,
  125. 'fReplaceOnDisk': False,
  126. 'fShowFirstMatch': False,
  127. 'fShowLineno': True,
  128. 'fShowReplaceWidgets': False},
  129. 'replace-entry-expanded': False,
  130. 'search-entry-expanded': False}),
  131. ('debug-data',
  132. 'wide',
  133. 0,
  134. {}),
  135. ('debug-exceptions',
  136. 'wide',
  137. 0,
  138. {}),
  139. ('debug-breakpoints',
  140. 'wide',
  141. 0,
  142. {}),
  143. ('testing',
  144. 'wide',
  145. 0,
  146. {}),
  147. ('debug-io',
  148. 'wide',
  149. 1,
  150. {}),
  151. ('debug-probe',
  152. 'wide',
  153. 2,
  154. {'active-range': (None,
  155. -1,
  156. -1),
  157. 'attrib-starts': [],
  158. 'first-line': 1125,
  159. 'folded-linenos': [],
  160. 'history': {u'file:C:/Data/Programming/enigma2/GetPicons/get_picons.py': ['i'\
  161. 'con_url\n',
  162. ' http://www.lyngsat.com/logo/tv/vv/viasat_history.png\n',
  163. 'print url\n',
  164. 'data\n',
  165. 'print icon_url\n',
  166. 'url_package\n'],
  167. u'file:C:/Data/Programming/enigma2/PlayStream2/ContentSources.py': ["r"\
  168. "2.find('itemprop=\"name\"')\n",
  169. 'print r2\n',
  170. 'ex\n',
  171. 'print headers\n',
  172. 'url\n',
  173. 'print r\n',
  174. 'print js\n',
  175. 'print path\n',
  176. 'data\n',
  177. "s=re.search(\"titlePlayer = '([^']+)'\", r, re.DOTALL).group(1)\n",
  178. 's.decode("utf8")\n',
  179. 's.decode("cp1251")\n',
  180. 'h.unescape(s.decode("cp1251"))\n',
  181. 'h.unescape("ü")\n',
  182. 'HTMLParser.HTMLParser().unescape(u"ü")\n',
  183. 'HTMLParser.HTMLParser().unescape(s)\n',
  184. 'import re\n',
  185. 're.sub("&#\\d;","aaa",s)\n',
  186. 're.sub("&#\\w+;","aaa",s)\n',
  187. 're.sub("&#\\w+;","#\\1#",s)\n',
  188. '2=re.sub("&#\\w+;",HTMLParser.HTMLParser().unescape("\\1"),s)\n',
  189. 's2=re.sub("&#\\w+;",HTMLParser.HTMLParser().unescape("\\1"),s)\n',
  190. 's2\n',
  191. 'print s2\n',
  192. 'print s2.decode("utf8")\n',
  193. 'print s2.decode("cp1252")\n',
  194. 'print s2.decode("cp1251")\n',
  195. 'print s2.decode("cp1257")\n',
  196. 'title\n',
  197. 'HTMLParser.HTMLParser().unescape(ü)\n\n\n""\n"\n',
  198. 'HTMLParser.HTMLParser().unescape("ü")\n',
  199. 'HTMLParser.HTMLParser().unescape("ü")re.sub("&#\\w+;",HTMLPars'\
  200. 'er.HTMLParser().unescape("\\1").enode("utf8"),s)\n',
  201. 're.sub("&#\\w+;",HTMLParser.HTMLParser().unescape("\\1").enode("utf'\
  202. '8"),s)\n',
  203. 're.sub("&#\\w+;",HTMLParser.HTMLParser().unescape("\\1"),s)\n',
  204. 's\n'],
  205. u'file:C:/Data/Programming/enigma2/PlayStream2/viaplay/vialib.py': ['p'\
  206. 'rint req.content\n']},
  207. 'launch-id': None,
  208. 'sel-line': 1130,
  209. 'sel-line-start': 99702,
  210. 'selection_end': 99747,
  211. 'selection_start': 99704}),
  212. ('debug-watch',
  213. 'wide',
  214. 1,
  215. {'node-states': [('eval',
  216. u'item'),
  217. ('eval',
  218. u'data'),
  219. ('eval',
  220. u'r2'),
  221. ('eval',
  222. u'streams')],
  223. 'tree-state': {'expanded-nodes': [],
  224. 'selected-nodes': [(1,)],
  225. 'top-node': (0,)}}),
  226. ('debug-modules',
  227. 'wide',
  228. 1,
  229. {}),
  230. ('python-shell',
  231. 'wide',
  232. 2,
  233. {'active-range': (None,
  234. -1,
  235. -1),
  236. 'attrib-starts': [],
  237. 'first-line': 0,
  238. 'folded-linenos': [],
  239. 'history': {},
  240. 'launch-id': None,
  241. 'sel-line': 2,
  242. 'sel-line-start': 146,
  243. 'selection_end': 146,
  244. 'selection_start': 146}),
  245. ('bookmarks',
  246. 'wide',
  247. 1,
  248. {}),
  249. ('messages',
  250. 'wide',
  251. 2,
  252. {}),
  253. ('os-command',
  254. 'wide',
  255. 1,
  256. {})],
  257. 'primary_view_state': {'editor_states': ({'bookmarks': ([[loc('get_picons.py'),
  258. {'attrib-starts': [('DBServices',
  259. 251),
  260. ('DBServices._load_services',
  261. 286)],
  262. 'first-line': 279,
  263. 'folded-linenos': [],
  264. 'sel-line': 302,
  265. 'sel-line-start': 11889,
  266. 'selection_end': 11992,
  267. 'selection_start': 11985},
  268. 1477834935.091],
  269. [loc('get_picons.py'),
  270. {'attrib-starts': [('DBServices',
  271. 251),
  272. ('DBServices._load_bouquets',
  273. 381)],
  274. 'first-line': 359,
  275. 'folded-linenos': [],
  276. 'sel-line': 382,
  277. 'sel-line-start': 14693,
  278. 'selection_end': 14798,
  279. 'selection_start': 14791},
  280. 1477834944.262],
  281. [loc('../../../../Python27/Lib/urllib2.py'),
  282. {'attrib-starts': [('HTTPDefaultErrorHandler',
  283. 555),
  284. ('HTTPDefaultErrorHandler.http_error_default',
  285. 556)],
  286. 'first-line': 552,
  287. 'folded-linenos': [],
  288. 'sel-line': 557,
  289. 'sel-line-start': 18972,
  290. 'selection_end': 18972,
  291. 'selection_start': 18972},
  292. 1477834953.465],
  293. [loc('get_picons.py'),
  294. {'attrib-starts': [],
  295. 'first-line': 0,
  296. 'folded-linenos': [],
  297. 'sel-line': 15,
  298. 'sel-line-start': 709,
  299. 'selection_end': 837,
  300. 'selection_start': 733},
  301. 1477835348.547],
  302. [loc('get_picons.py'),
  303. {'attrib-starts': [],
  304. 'first-line': 0,
  305. 'folded-linenos': [],
  306. 'sel-line': 17,
  307. 'sel-line-start': 936,
  308. 'selection_end': 999,
  309. 'selection_start': 996},
  310. 1477835350.435],
  311. [loc('get_picons.py'),
  312. {'attrib-starts': [],
  313. 'first-line': 13,
  314. 'folded-linenos': [],
  315. 'sel-line': 27,
  316. 'sel-line-start': 1425,
  317. 'selection_end': 1440,
  318. 'selection_start': 1433},
  319. 1477835351.336],
  320. [loc('get_picons.py'),
  321. {'attrib-starts': [],
  322. 'first-line': 0,
  323. 'folded-linenos': [],
  324. 'sel-line': 27,
  325. 'sel-line-start': 1425,
  326. 'selection_end': 1425,
  327. 'selection_start': 1425},
  328. 1477835375.066],
  329. [loc('get_picons.py'),
  330. {'attrib-starts': [],
  331. 'first-line': 13,
  332. 'folded-linenos': [],
  333. 'sel-line': 27,
  334. 'sel-line-start': 1425,
  335. 'selection_end': 1439,
  336. 'selection_start': 1432},
  337. 1477835376.016],
  338. [loc('get_picons.py'),
  339. {'attrib-starts': [('main',
  340. 57)],
  341. 'first-line': 76,
  342. 'folded-linenos': [],
  343. 'sel-line': 99,
  344. 'sel-line-start': 3975,
  345. 'selection_end': 3998,
  346. 'selection_start': 3991},
  347. 1477835381.829],
  348. [loc('get_picons.py'),
  349. {'attrib-starts': [('create_picons',
  350. 109)],
  351. 'first-line': 96,
  352. 'folded-linenos': [],
  353. 'sel-line': 113,
  354. 'sel-line-start': 4460,
  355. 'selection_end': 4481,
  356. 'selection_start': 4481},
  357. 1477835443.285],
  358. [loc('get_picons.py'),
  359. {'attrib-starts': [('create_picons',
  360. 109)],
  361. 'first-line': 96,
  362. 'folded-linenos': [],
  363. 'sel-line': 119,
  364. 'sel-line-start': 4611,
  365. 'selection_end': 4641,
  366. 'selection_start': 4634},
  367. 1477835443.785],
  368. [loc('get_picons.py'),
  369. {'attrib-starts': [('create_picons',
  370. 109)],
  371. 'first-line': 168,
  372. 'folded-linenos': [],
  373. 'sel-line': 188,
  374. 'sel-line-start': 7664,
  375. 'selection_end': 7688,
  376. 'selection_start': 7688},
  377. 1477835499.137],
  378. [loc('get_picons.py'),
  379. {'attrib-starts': [('create_picons',
  380. 109)],
  381. 'first-line': 168,
  382. 'folded-linenos': [],
  383. 'sel-line': 191,
  384. 'sel-line-start': 7708,
  385. 'selection_end': 7753,
  386. 'selection_start': 7746},
  387. 1477835501.356],
  388. [loc('get_picons.py'),
  389. {'attrib-starts': [('get_soup',
  390. 233)],
  391. 'first-line': 217,
  392. 'folded-linenos': [],
  393. 'sel-line': 240,
  394. 'sel-line-start': 9684,
  395. 'selection_end': 9715,
  396. 'selection_start': 9700},
  397. 1477835556.15],
  398. [loc('get_picons.py'),
  399. {'attrib-starts': [('DBServices',
  400. 257),
  401. ('DBServices._load_services',
  402. 292)],
  403. 'first-line': 285,
  404. 'folded-linenos': [],
  405. 'sel-line': 308,
  406. 'sel-line-start': 12046,
  407. 'selection_end': 12157,
  408. 'selection_start': 12142},
  409. 1477835565.274],
  410. [loc('get_picons.py'),
  411. {'attrib-starts': [('DBServices',
  412. 257),
  413. ('DBServices._load_bouquets',
  414. 387)],
  415. 'first-line': 365,
  416. 'folded-linenos': [],
  417. 'sel-line': 388,
  418. 'sel-line-start': 14850,
  419. 'selection_end': 14963,
  420. 'selection_start': 14948},
  421. 1477835568.181],
  422. [loc('get_picons.py'),
  423. {'attrib-starts': [('get_packages',
  424. 209)],
  425. 'first-line': 198,
  426. 'folded-linenos': [],
  427. 'sel-line': 221,
  428. 'sel-line-start': 8810,
  429. 'selection_end': 8810,
  430. 'selection_start': 8810},
  431. 1477835615.894],
  432. [loc('get_picons.py'),
  433. {'attrib-starts': [('get_soup',
  434. 233)],
  435. 'first-line': 229,
  436. 'folded-linenos': [],
  437. 'sel-line': 234,
  438. 'sel-line-start': 9472,
  439. 'selection_end': 9472,
  440. 'selection_start': 9472},
  441. 1477835701.102],
  442. [loc('../../../../Python27/Lib/site-packages/PIL/Image.py'),
  443. {'attrib-starts': [('open',
  444. 2240)],
  445. 'first-line': 2285,
  446. 'folded-linenos': [],
  447. 'sel-line': 2308,
  448. 'sel-line-start': 76151,
  449. 'selection_end': 76151,
  450. 'selection_start': 76151},
  451. 1477835713.764],
  452. [loc('get_picons.py'),
  453. {'attrib-starts': [],
  454. 'first-line': 517,
  455. 'folded-linenos': [],
  456. 'sel-line': 540,
  457. 'sel-line-start': 19568,
  458. 'selection_end': 19575,
  459. 'selection_start': 19568},
  460. 1477849965.895]],
  461. 20),
  462. 'current-loc': loc('get_picons.py'),
  463. 'editor-state-list': [(loc('get_picons.py'),
  464. {'attrib-starts': [('create_picons',
  465. 109)],
  466. 'first-line': 0,
  467. 'folded-linenos': [],
  468. 'sel-line': 193,
  469. 'sel-line-start': 7819,
  470. 'selection_end': 7819,
  471. 'selection_start': 7819}),
  472. (loc('plugin.py'),
  473. {'attrib-starts': [('MainScreen',
  474. 16),
  475. ('MainScreen.about',
  476. 86)],
  477. 'first-line': 81,
  478. 'folded-linenos': [],
  479. 'sel-line': 96,
  480. 'sel-line-start': 5152,
  481. 'selection_end': 5173,
  482. 'selection_start': 5173}),
  483. (loc('../../../../Python27/Lib/site-packages/PIL/Image.py'),
  484. {'attrib-starts': [('open',
  485. 2240)],
  486. 'first-line': 2285,
  487. 'folded-linenos': [],
  488. 'sel-line': 2308,
  489. 'sel-line-start': 76151,
  490. 'selection_end': 76151,
  491. 'selection_start': 76151})],
  492. 'has-focus': True,
  493. 'locked': False},
  494. [loc('get_picons.py'),
  495. loc('plugin.py'),
  496. loc('../../../../Python27/Lib/site-packages/PIL/Image.py')]),
  497. 'open_files': [u'plugin.py',
  498. u'get_picons.py']},
  499. 'saved_notebook_display': None,
  500. 'split_percents': {0: 0.5},
  501. 'splits': 2,
  502. 'tab_location': 'top',
  503. 'user_data': {}},
  504. 'saved_notebook_display': None,
  505. 'split_percents': {0: 0.5},
  506. 'splits': 2,
  507. 'tab_location': 'left',
  508. 'user_data': {}},
  509. 'window-alloc': (106,
  510. -12,
  511. 2418,
  512. 1374)}]}
  513. guimgr.recent-documents = [loc('get_picons.py'),
  514. loc('../../../../Python27/Lib/site-packages/PIL/Image.py'),
  515. loc('plugin.py')]
  516. proj.build-cmd = {None: ('default',
  517. None)}
  518. proj.env-vars = {None: ('default',
  519. [u''])}
  520. proj.pypath = {None: ('custom',
  521. u'c:\\Data\\Programming\\enigma2\\python;')}
  522. search.search-history = [u'headers',
  523. u'urllib2.urlopen',
  524. u'urllib2',
  525. u'url_icon',
  526. u'url_ic',
  527. u'about',
  528. u'config.plugins.getpicons',
  529. u'getconfig',
  530. u'size',
  531. u'print ',
  532. u'starting',
  533. u'Downloading and looking',
  534. u'Downloading and looking htt',
  535. u'overwrite',
  536. u'fname',
  537. u'fnmae',
  538. u'write',
  539. u'options',
  540. u'piconHD',
  541. u'piconhd']
  542. testing.stored-results = (1,
  543. [],
  544. {})