summaryrefslogtreecommitdiff
path: root/recipes/enigma2/enigma2-plugins/vuplus/enigma2_plugins_20121113.patch
blob: 0fc349143cfd9c8fff67f15fb2253b8fe93d8396 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
diff --git a/mytube/meta/plugin_mytube.xml b/mytube/meta/plugin_mytube.xml
index eb2a0fd..56e1686 100644
--- a/mytube/meta/plugin_mytube.xml
+++ b/mytube/meta/plugin_mytube.xml
@@ -3,7 +3,8 @@
                     <hardware type="dm8000" />
                     <hardware type="dm800" />
 		    <hardware type="dm800se" />
-                    <hardware type="dm500hd" />	
+                    <hardware type="dm500hd" />
+		    <hardware type="dm7020hd" />
                     <tag type="Multimedia" />
 	  </prerequisites>
           <info>
diff --git a/mytube/po/de.po b/mytube/po/de.po
index b487673..c56c84e 100644
--- a/mytube/po/de.po
+++ b/mytube/po/de.po
@@ -7,9 +7,9 @@ msgid ""
 msgstr ""
 "Project-Id-Version: tuxbox-enigma 0.0.1\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-05-29 17:38+0200\n"
-"PO-Revision-Date: 2008-05-16 17:15+0100\n"
-"Last-Translator: Stefan Pluecken <mladen.horvat@multimedia-labs.de>\n"
+"POT-Creation-Date: 2011-06-12 19:07+0100\n"
+"PO-Revision-Date: 2011-06-12 19:22+0100\n"
+"Last-Translator: JuSt611 <Software@Strasdas.de>\n"
 "Language-Team: none\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
@@ -18,448 +18,690 @@ msgstr ""
 "X-Poedit-Language: German\n"
 "X-Poedit-Country: GERMANY\n"
 "X-Poedit-SourceCharset: iso-8859-15\n"
+"X-Poedit-Basepath: .\n"
+"X-Poedit-SearchPath-0: ../src\n"
 
-msgid " Results"
-msgstr " Ergebnisse"
+#: ../src/MyTubeSearch.py:161
+#: ../src/plugin.py:52
+msgid "Relevance"
+msgstr "Relevanz"
 
-msgid "Added: "
-msgstr "Hinzugefügt: "
+#: ../src/MyTubeSearch.py:162
+#: ../src/plugin.py:53
+msgid "View Count"
+msgstr "Aufrufe"
 
-msgid "All"
-msgstr "Alle"
+#: ../src/MyTubeSearch.py:163
+#: ../src/plugin.py:54
+msgid "Published"
+msgstr "Veröffentlicht"
 
+#: ../src/MyTubeSearch.py:164
+#: ../src/plugin.py:55
+msgid "Rating"
+msgstr "Bewertung"
+
+#: ../src/MyTubeSearch.py:168
+#: ../src/plugin.py:59
 msgid "All Time"
-msgstr ""
+msgstr "Allzeit"
 
-msgid "An error occured."
-msgstr "Es ist ein Fehler aufgetreten."
+#: ../src/MyTubeSearch.py:169
+#: ../src/plugin.py:60
+msgid "This Month"
+msgstr "Diesen Monat"
 
-msgid "Ascending"
-msgstr "aufsteigend"
+#: ../src/MyTubeSearch.py:170
+#: ../src/plugin.py:61
+msgid "This Week"
+msgstr "Diese Woche"
 
-msgid "Ask user"
-msgstr "Nutzer fragen"
+#: ../src/MyTubeSearch.py:171
+#: ../src/plugin.py:62
+msgid "Today"
+msgstr "Heute"
 
-msgid "Australia"
-msgstr "Australien"
+#: ../src/MyTubeSearch.py:175
+#: ../src/plugin.py:66
+#: ../src/plugin.py:619
+#: ../src/plugin.py:625
+#: ../src/plugin.py:1743
+msgid "Yes"
+msgstr "Ja"
 
-msgid "Author: "
-msgstr "Author: "
+#: ../src/MyTubeSearch.py:176
+#: ../src/plugin.py:67
+#: ../src/plugin.py:620
+#: ../src/plugin.py:626
+msgid "No"
+msgstr "Nein"
+
+#: ../src/MyTubeSearch.py:180
+#: ../src/MyTubeSearch.py:200
+#: ../src/plugin.py:71
+#: ../src/plugin.py:91
+msgid "All"
+msgstr "Alle"
+
+#: ../src/MyTubeSearch.py:181
+#: ../src/plugin.py:72
+msgid "Film & Animation"
+msgstr "Film & Animation"
 
+#: ../src/MyTubeSearch.py:182
+#: ../src/plugin.py:73
 msgid "Autos & Vehicles"
 msgstr "Autos und Fahrzeuge"
 
-msgid "Brazil"
-msgstr "Brasilien"
+#: ../src/MyTubeSearch.py:183
+#: ../src/plugin.py:74
+msgid "Music"
+msgstr "Musik"
 
-msgid "Canada"
-msgstr "Kanada"
+#: ../src/MyTubeSearch.py:184
+#: ../src/plugin.py:75
+msgid "Pets & Animals"
+msgstr "Tiere"
 
-msgid "Choose target folder"
-msgstr "Wähle Zielverzeichnis"
+#: ../src/MyTubeSearch.py:185
+#: ../src/plugin.py:76
+msgid "Sports"
+msgstr "Sport"
 
-msgid "Clear history on Exit:"
-msgstr "Verlauf beim Verlassen löschen:"
+#: ../src/MyTubeSearch.py:186
+#: ../src/plugin.py:77
+msgid "Travel & Events"
+msgstr "Reisen & Events"
 
-msgid "Close"
-msgstr "Schließen"
+#: ../src/MyTubeSearch.py:187
+#: ../src/plugin.py:78
+msgid "Short Movies"
+msgstr "Kurzvideos"
 
+#: ../src/MyTubeSearch.py:188
+#: ../src/plugin.py:79
+msgid "Gaming"
+msgstr "Spiele"
+
+#: ../src/MyTubeSearch.py:189
+#: ../src/plugin.py:80
 msgid "Comedy"
 msgstr "Komödien"
 
-msgid "Czech Republic"
-msgstr "Tschechien"
-
-msgid "Descending"
-msgstr "absteigend"
-
-msgid "Display search results by:"
-msgstr "Suchergebnisse anzeigen:"
-
-msgid "Do you want to see more entries?"
-msgstr "Weitere Videos?"
-
-msgid "Download Video"
-msgstr "Video runterladen"
-
-msgid "Download location"
-msgstr "Download Verzeichnis:"
+#: ../src/MyTubeSearch.py:190
+#: ../src/plugin.py:81
+msgid "People & Blogs"
+msgstr "Leute & Blogs"
 
-msgid "Downloading screenshots. Please wait..."
-msgstr "Bilder werden geladen. Bitte warten..."
+#: ../src/MyTubeSearch.py:191
+#: ../src/plugin.py:82
+msgid "News & Politics"
+msgstr "Nachrichten & Politik"
 
-msgid "Duration: "
-msgstr "Dauer: "
+#: ../src/MyTubeSearch.py:192
+#: ../src/plugin.py:83
+msgid "Entertainment"
+msgstr "Unterhaltung"
 
+#: ../src/MyTubeSearch.py:193
+#: ../src/plugin.py:84
 msgid "Education"
 msgstr "Bildung"
 
-msgid "Enter your search term(s)"
-msgstr "Suchbegriff eingeben"
+#: ../src/MyTubeSearch.py:194
+#: ../src/plugin.py:85
+msgid "Howto & Style"
+msgstr "Tipps & Tricks"
 
-msgid "Entertainment"
-msgstr "Unterhaltung"
+#: ../src/MyTubeSearch.py:195
+#: ../src/plugin.py:86
+msgid "Nonprofits & Activism"
+msgstr "Non-Profit"
 
-msgid "Fetching feed entries"
-msgstr "Lade feeds"
+#: ../src/MyTubeSearch.py:196
+#: ../src/plugin.py:87
+msgid "Science & Technology"
+msgstr "Wissenschaft & Technik"
 
-msgid "Fetching search entries"
-msgstr "Lade Suchergebnisse"
+#: ../src/MyTubeSearch.py:201
+#: ../src/MyTubeSearch.py:208
+#: ../src/plugin.py:92
+#: ../src/plugin.py:99
+msgid "Australia"
+msgstr "Australien"
 
-msgid "Film & Animation"
-msgstr "Film & Animation"
+#: ../src/MyTubeSearch.py:202
+#: ../src/plugin.py:93
+msgid "Brazil"
+msgstr "Brasilien"
+
+#: ../src/MyTubeSearch.py:203
+#: ../src/plugin.py:94
+msgid "Canada"
+msgstr "Kanada"
 
+#: ../src/MyTubeSearch.py:204
+#: ../src/plugin.py:95
+msgid "Czech Republic"
+msgstr "Tschechien"
+
+#: ../src/MyTubeSearch.py:205
+#: ../src/plugin.py:96
 msgid "France"
 msgstr "Frankreich"
 
-msgid "Gaming"
-msgstr "Spiele"
-
+#: ../src/MyTubeSearch.py:206
+#: ../src/plugin.py:97
 msgid "Germany"
 msgstr "Deutschland"
 
+#: ../src/MyTubeSearch.py:207
+#: ../src/plugin.py:98
 msgid "Great Britain"
 msgstr "England"
 
-msgid "HD videos"
-msgstr "HD Videos"
-
-msgid "Help"
-msgstr "Hilfe"
-
-msgid "History"
-msgstr "Verlauf"
-
+#: ../src/MyTubeSearch.py:209
+#: ../src/plugin.py:100
 msgid "Holland"
 msgstr "Holland"
 
+#: ../src/MyTubeSearch.py:210
+#: ../src/plugin.py:101
 msgid "Hong Kong"
 msgstr "Hong Kong"
 
-msgid "Howto & Style"
-msgstr "Tipps & Tricks"
-
+#: ../src/MyTubeSearch.py:211
+#: ../src/plugin.py:102
 msgid "India"
 msgstr "Indien"
 
+#: ../src/MyTubeSearch.py:212
+#: ../src/plugin.py:103
 msgid "Ireland"
 msgstr "Irland"
 
+#: ../src/MyTubeSearch.py:213
+#: ../src/plugin.py:104
 msgid "Israel"
 msgstr "Israel"
 
+#: ../src/MyTubeSearch.py:214
+#: ../src/plugin.py:105
 msgid "Italy"
 msgstr "Italien"
 
+#: ../src/MyTubeSearch.py:215
+#: ../src/plugin.py:106
 msgid "Japan"
 msgstr "Japan"
 
-msgid "Load feed on startup:"
-msgstr "Feed beim Starten laden:"
-
+#: ../src/MyTubeSearch.py:216
+#: ../src/plugin.py:107
 msgid "Mexico"
 msgstr "Mexiko"
 
-msgid "More video entries."
-msgstr "Weitere Video Einträge."
+#: ../src/MyTubeSearch.py:217
+#: ../src/plugin.py:108
+msgid "New Zealand"
+msgstr "Neuseeland"
+
+#: ../src/MyTubeSearch.py:218
+#: ../src/plugin.py:109
+msgid "Poland"
+msgstr "Polen"
+
+#: ../src/MyTubeSearch.py:219
+#: ../src/plugin.py:110
+msgid "Russia"
+msgstr "Russland"
+
+#: ../src/MyTubeSearch.py:220
+#: ../src/plugin.py:111
+msgid "South Korea"
+msgstr "Süd Korea"
+
+#: ../src/MyTubeSearch.py:221
+#: ../src/plugin.py:112
+msgid "Spain"
+msgstr "Spanien"
+
+#: ../src/MyTubeSearch.py:222
+#: ../src/plugin.py:113
+msgid "Sweden"
+msgstr "Schweden"
+
+#: ../src/MyTubeSearch.py:223
+#: ../src/plugin.py:114
+msgid "Taiwan"
+msgstr "Taiwan"
+
+#: ../src/MyTubeSearch.py:224
+#: ../src/plugin.py:115
+msgid "United States"
+msgstr "USA"
+
+#: ../src/MyTubeSearch.py:228
+#: ../src/plugin.py:119
+msgid "Ascending"
+msgstr "Aufsteigend"
+
+#: ../src/MyTubeSearch.py:229
+#: ../src/plugin.py:120
+msgid "Descending"
+msgstr "Absteigend"
+
+#: ../src/MyTubeSearch.py:237
+#: ../src/plugin.py:128
+#: ../src/plugin.py:790
+msgid "HD videos"
+msgstr "HD Videos"
+
+#: ../src/MyTubeSearch.py:238
+#: ../src/plugin.py:129
+#: ../src/plugin.py:794
+msgid "Most viewed"
+msgstr "Meistgesehen"
+
+#: ../src/MyTubeSearch.py:239
+#: ../src/plugin.py:130
+#: ../src/plugin.py:792
+msgid "Top rated"
+msgstr "Beste Bewertung"
+
+#: ../src/MyTubeSearch.py:240
+#: ../src/plugin.py:131
+#: ../src/plugin.py:799
+msgid "Recently featured"
+msgstr "Kürzlich featured"
 
+#: ../src/MyTubeSearch.py:241
+#: ../src/plugin.py:132
+#: ../src/plugin.py:797
 msgid "Most discussed"
 msgstr "Heiß diskutiert"
 
+#: ../src/MyTubeSearch.py:242
+#: ../src/plugin.py:133
+#: ../src/plugin.py:793
+msgid "Top favorites"
+msgstr "Top-Favoriten"
+
+#: ../src/MyTubeSearch.py:243
+#: ../src/plugin.py:134
+#: ../src/plugin.py:798
 msgid "Most linked"
 msgstr "Am meisten verlinkt"
 
-msgid "Most popular"
-msgstr "Beliebteste Videos"
+#: ../src/MyTubeSearch.py:244
+#: ../src/plugin.py:135
+#: ../src/plugin.py:800
+msgid "Most responded"
+msgstr "Meiste Antworten"
 
+#: ../src/MyTubeSearch.py:245
+#: ../src/plugin.py:136
+#: ../src/plugin.py:796
 msgid "Most recent"
 msgstr "Neueste Videos"
 
-msgid "Most responded"
-msgstr "Meiste Antworten"
-
-msgid "Most viewed"
-msgstr "Meistgesehen"
+#: ../src/MyTubeSearch.py:249
+#: ../src/MyTubeSearch.py:252
+#: ../src/plugin.py:139
+#: ../src/plugin.py:142
+msgid "Ask user"
+msgstr "Nutzer fragen"
 
-msgid "Music"
-msgstr "Musik"
+#: ../src/MyTubeSearch.py:249
+#: ../src/MyTubeSearch.py:252
+#: ../src/plugin.py:139
+#: ../src/plugin.py:142
+msgid "Return to movie list"
+msgstr "Zurück zur Videoliste"
 
-msgid "My TubePlayer"
-msgstr "MyTube Player"
+#: ../src/MyTubeSearch.py:249
+#: ../src/plugin.py:139
+msgid "Play next video"
+msgstr "nächstes Video"
 
-msgid "MyTube Settings"
-msgstr "MyTube Einstellungen"
+#: ../src/MyTubeSearch.py:249
+#: ../src/plugin.py:139
+msgid "Play video again"
+msgstr "Video noch mal abspielen"
 
-msgid "MyTubePlayer"
-msgstr "MyTube Player"
+#: ../src/MyTubeSearch.py:314
+msgid " Results"
+msgstr " Ergebnisse"
 
-msgid "MyTubePlayer Help"
-msgstr "MyTube Player Hilfe"
+#: ../src/MyTubeSearch.py:398
+#: ../src/MyTubeSearch.py:562
+#: ../src/plugin.py:281
+#: ../src/plugin.py:1280
+#: ../src/plugin.py:1466
+msgid "Close"
+msgstr "Schließen"
 
-msgid "MyTubePlayer active video downloads"
-msgstr "aktive Video downloads"
+#: ../src/MyTubeSearch.py:399
+msgid "Save"
+msgstr "Speichern"
 
+#: ../src/MyTubeSearch.py:412
+#: ../src/MyTubeSearch.py:415
 msgid "MyTubePlayer settings"
 msgstr "MyTube Player Einstellungen"
 
-msgid "MyTubeVideoInfoScreen"
-msgstr "MyTubeVideoInfoScreen"
+#: ../src/MyTubeSearch.py:419
+msgid "Display search results by:"
+msgstr "Suchergebnisse anzeigen:"
 
-msgid "MyTubeVideohelpScreen"
-msgstr "MyTubeVideohelpScreen"
+#: ../src/MyTubeSearch.py:420
+msgid "Search restricted content:"
+msgstr "Suche ohne Altersbeschränkung:"
 
-msgid "New Zealand"
-msgstr "Neu Seeland"
+#: ../src/MyTubeSearch.py:421
+msgid "Search category:"
+msgstr "Such-Kategorie:"
 
-msgid "News & Politics"
-msgstr "Nachrichten & Politik"
+#: ../src/MyTubeSearch.py:422
+msgid "Search region:"
+msgstr "Such-Region:"
 
-msgid "No"
-msgstr "Nein"
+#: ../src/MyTubeSearch.py:423
+msgid "Load feed on startup:"
+msgstr "Feed beim Starten laden:"
 
-msgid "No playable video found! Stop playing this movie?"
-msgstr "Kein abspielbares Video gefunden! Wiedergabe beenden?"
+#: ../src/MyTubeSearch.py:426
+msgid "Start with following feed:"
+msgstr "Beginne mit folgendem feed:"
 
-msgid "No videos to display"
-msgstr "Keine Videos zum anzeigen"
+#: ../src/MyTubeSearch.py:427
+msgid "Videoplayer stop/exit behavior:"
+msgstr "Verhalten beim Drücken der STOPP/EXIT-Taste:"
 
-msgid "No, but play video again"
-msgstr "Nein, aber Video noch mal abspielen"
+#: ../src/MyTubeSearch.py:428
+msgid "Videobrowser exit behavior:"
+msgstr "Verhalten nach Verlassen der Videoliste:"
 
-msgid "No, but switch to video entries."
-msgstr "Nein, aber zu den Videos zurück."
+#: ../src/MyTubeSearch.py:435
+msgid "Download location"
+msgstr "Download Verzeichnis:"
 
-msgid "No, but switch to video search."
-msgstr "Nein, aber zur Videosuche zurück"
+#: ../src/MyTubeSearch.py:438
+msgid "Clear history on Exit:"
+msgstr "Verlauf beim Verlassen löschen:"
 
-msgid "Nonprofits & Activism"
-msgstr "Non-Profit"
+#: ../src/MyTubeSearch.py:459
+msgid "Choose target folder"
+msgstr "Wähle Zielverzeichnis"
 
-msgid "Not fetching feed entries"
-msgstr "Lade keine feed Einträge"
-
-msgid "People & Blogs"
-msgstr "Leute & Blogs"
-
-msgid "Pets & Animals"
-msgstr "Tiere"
-
-msgid "Play YouTube movies"
-msgstr "YouTube Videos abspielen"
-
-msgid "Play next video"
-msgstr "nächstes Video"
-
-msgid "Play video again"
-msgstr "Video noch mal abspielen"
+#: ../src/MyTubeSearch.py:575
+#: ../src/MyTubeSearch.py:591
+msgid "MyTubePlayer active video downloads"
+msgstr "aktive Video downloads"
 
-msgid "Please enter your search term."
-msgstr "Bitte geben Sie einen Suchbegriff ein."
+#: ../src/plugin.py:271
+msgid ""
+"Welcome to the MyTube Youtube Player.\n"
+"\n"
+"While entering your search term(s) you will get suggestions displayed matching your search term.\n"
+"\n"
+"To select a suggestion press DOWN on your remote, select the desired result and press OK on your remote to start the search.\n"
+"\n"
+"Press exit to get back to the input field."
+msgstr ""
+"Herzlich Willkommen beim MyTube YouTube Player.\n"
+"\n"
+"Während der Eingabe Ihres Suchwortes erhalten Sie passende Vorschläge zu Ihrer Sucheingabe.\n"
+"\n"
+"Um einen Vorschlag auszuwählen, drücken Sie die NACH UNTEN-Taste, wählen den entsprechenden Eintrag aus und drücken die OK-Taste um die Suche zu starten.\n"
+"\n"
+"Um zur Such-Eingabemaske zurück zu gelangen, drücken Sie die EXIT-Taste."
 
-msgid "Please select a standard feed or try searching for videos."
-msgstr "Wählen Sie einen Standard Feed oder suchen Sie nach Videos."
+#: ../src/plugin.py:272
+msgid ""
+"Welcome to the MyTube Youtube Player.\n"
+"\n"
+"Use the Bouqet+ button to navigate to the search field and the Bouqet- to navigate to the video entries.\n"
+"\n"
+"To play a movie just press OK on your remote control.\n"
+"\n"
+"Press info to see the movie description.\n"
+"\n"
+"Press the Menu button for additional options.\n"
+"\n"
+"The Help button shows this help again."
+msgstr ""
+"Herzlich Willkommen beim MyTube YouTube Player.\n"
+"\n"
+"Nutzen Sie die Bouqet+ Taste um zur Sucheingabe zu gelangen und die Bouqet- Taste für die Video Einträge.\n"
+"\n"
+"Um ein Video abzuspielen drücken Sie die OK-Taste auf Ihrer Fernbedienung.\n"
+"\n"
+"Mit der Info-Taste erhalten Sie die erweiterte Beschreibung zu einem Video.\n"
+"\n"
+"Für weitere Einstellungen drücken Sie die Menü-Taste.\n"
+"\n"
+"Um diese Hilfe erneut anzuzeigen, drücken Sie die Hilfe-Taste."
 
-msgid "Poland"
-msgstr "Polen"
+#: ../src/plugin.py:282
+msgid "Std. Feeds"
+msgstr "Std. Feeds"
 
-msgid "Published"
-msgstr "Veröffentlicht"
+#: ../src/plugin.py:283
+msgid "History"
+msgstr "Verlauf"
 
-msgid "Rating"
-msgstr "Bewertung"
+#: ../src/plugin.py:398
+#: ../src/plugin.py:422
+#: ../src/plugin.py:464
+msgid "Genuine Dreambox validation failed!"
+msgstr "Prüfung auf Original-Dreambox gescheitert!"
 
-msgid "Ratings: "
-msgstr "Bewertungen: "
+#: ../src/plugin.py:398
+#: ../src/plugin.py:422
+#: ../src/plugin.py:464
+msgid "Verify your Dreambox authenticity by running the genuine dreambox plugin!"
+msgstr "Bitte mit dem \"Genuine Dreambox Plugin\" auf Echtheit prüfen!"
 
-msgid "Really quit MyTube Player?"
-msgstr "MyTube Player wirklich beenden?"
+#: ../src/plugin.py:417
+#: ../src/plugin.py:476
+msgid "Fetching feed entries"
+msgstr "Lade feeds"
 
-msgid "Recently featured"
-msgstr "Kürzlich featured"
+#: ../src/plugin.py:417
+#: ../src/plugin.py:476
+msgid "Trying to download the Youtube feed entries. Please wait..."
+msgstr "YouTube feeds werden geladen, bitte warten..."
 
-msgid "Related video entries."
-msgstr "Ähnliche Videos"
+#: ../src/plugin.py:434
+msgid "MyTubePlayer"
+msgstr "MyTube Player"
 
-msgid "Relevance"
-msgstr "Relevanz"
+#: ../src/plugin.py:438
+msgid "Search Term(s)"
+msgstr "Suchwort(e)"
 
-msgid "Response video entries."
-msgstr "Video Antworten"
+#: ../src/plugin.py:478
+msgid "Fetching search entries"
+msgstr "Lade Suchergebnisse"
 
-msgid "Return to movie list"
-msgstr "Zurück zur Videoliste"
+#: ../src/plugin.py:478
+msgid "Trying to download the Youtube search results. Please wait..."
+msgstr "YouTube Suchergebnisse werden geladen, bitte warten..."
 
-msgid "Russia"
-msgstr "Russland"
+#: ../src/plugin.py:480
+msgid "An error occured."
+msgstr "Es ist ein Fehler aufgetreten."
 
-msgid "Save"
-msgstr "Speichern"
+#: ../src/plugin.py:480
+msgid "There was an error getting the feed entries. Please try again."
+msgstr "Fehler beim Laden der Suchergebnisse. Noch mal probieren."
 
-msgid "Science & Technology"
-msgstr "Wissenschaft & Technik"
+#: ../src/plugin.py:483
+msgid "No videos to display"
+msgstr "Keine Videos zum anzeigen"
 
-msgid "Search Term(s)"
-msgstr "Suchwort(e)"
+#: ../src/plugin.py:483
+msgid "Please select a standard feed or try searching for videos."
+msgstr "Wählen Sie einen Standard Feed oder suchen Sie nach Videos."
 
-msgid "Search category:"
-msgstr "Such-Kategorie:"
+#: ../src/plugin.py:485
+msgid "Not fetching feed entries"
+msgstr "Lade keine feed Einträge"
 
-msgid "Search region:"
-msgstr "Such-Region:"
+#: ../src/plugin.py:485
+msgid "Please enter your search term."
+msgstr "Bitte geben Sie einen Suchbegriff ein."
 
-msgid "Search restricted content:"
-msgstr "Suche ohne Altersbeschränkung:"
+#: ../src/plugin.py:504
+#: ../src/plugin.py:506
+#: ../src/plugin.py:513
+msgid "MyTubePlayer Help"
+msgstr "MyTube Player Hilfe"
 
-msgid "Select new feed to view."
-msgstr "Neuen feed auswählen"
+#: ../src/plugin.py:525
+#: ../src/plugin.py:531
+msgid "MyTube Settings"
+msgstr "MyTube Einstellungen"
 
+#: ../src/plugin.py:528
+#: ../src/plugin.py:543
 msgid "Select your choice."
 msgstr "Treffen Sie Ihre Wahl."
 
-msgid "Short Movies"
-msgstr "Kurzvideos"
-
-msgid "Sorry, video is not available!"
-msgstr "Video nicht verfügbar!"
-
-msgid "South Korea"
-msgstr "Süd Korea"
-
-msgid "Spain"
-msgstr "Spanien"
-
-msgid "Sports"
-msgstr "Sport"
-
-msgid "Start with following feed:"
-msgstr "Beginne mit folgendem feed:"
+#: ../src/plugin.py:533
+msgid "View related videos"
+msgstr "Ähnliche Videos"
 
-msgid "Std. Feeds"
-msgstr "Std. Feeds"
+#: ../src/plugin.py:534
+msgid "View response videos"
+msgstr "Video Antworten"
 
-msgid "Stop playing this movie?"
-msgstr "Wiedergabe beenden?"
+#: ../src/plugin.py:538
+msgid "Download Video"
+msgstr "Video runterladen"
 
-msgid "Sweden"
-msgstr "Schweden"
+#: ../src/plugin.py:539
+msgid "View active downloads"
+msgstr "Aktive Downloads anzeigen"
 
-msgid "Tags: "
-msgstr "Tags: "
+#: ../src/plugin.py:577
+msgid "Enter your search term(s)"
+msgstr "Suchbegriff eingeben"
 
-msgid "Taiwan"
-msgstr "Taiwan"
+#: ../src/plugin.py:621
+msgid "No, but switch to video entries."
+msgstr "Nein, aber zu den Videos zurück."
 
-msgid "There was an error getting the feed entries. Please try again."
-msgstr "Fehler beim Laden der Suchergebnisse. Noch mal probieren."
+#: ../src/plugin.py:627
+msgid "No, but switch to video search."
+msgstr "Nein, aber zur Videosuche zurück"
 
-msgid "This Month"
-msgstr "Diesen Monat"
+#: ../src/plugin.py:629
+msgid "Really quit MyTube Player?"
+msgstr "MyTube Player wirklich beenden?"
 
-msgid "This Week"
-msgstr "Diese Woche"
+#: ../src/plugin.py:722
+msgid "Sorry, video is not available!"
+msgstr "Video nicht verfügbar!"
 
-msgid "This is the help screen. Feed me with something to display."
-msgstr ""
+#: ../src/plugin.py:757
+msgid "Do you want to see more entries?"
+msgstr "Weitere Videos?"
 
-msgid "Today"
-msgstr "Heute"
+#: ../src/plugin.py:795
+msgid "Most popular"
+msgstr "Beliebteste Videos"
 
-msgid "Top favorites"
-msgstr "Top-Favoriten"
+#: ../src/plugin.py:802
+msgid "Select new feed to view."
+msgstr "Neuen feed auswählen"
 
-msgid "Top rated"
-msgstr "Beste Bewertung"
+#: ../src/plugin.py:968
+msgid "More video entries."
+msgstr "Weitere Video Einträge."
 
-msgid "Travel & Events"
-msgstr "Reisen & Events"
+#: ../src/plugin.py:976
+msgid "Related video entries."
+msgstr "Ähnliche Videos"
 
-msgid "Trying to download the Youtube feed entries. Please wait..."
-msgstr "YouTube feeds werden geladen, bitte warten..."
+#: ../src/plugin.py:984
+msgid "Response video entries."
+msgstr "Video Antworten"
 
-msgid "Trying to download the Youtube search results. Please wait..."
-msgstr "YouTube Suchergebnisse werden geladen, bitte warten..."
+#: ../src/plugin.py:1103
+#: ../src/plugin.py:1341
+msgid "Added: "
+msgstr "Hinzugefügt: "
 
-msgid "United States"
-msgstr "USA"
+#: ../src/plugin.py:1103
+#: ../src/plugin.py:1344
+msgid "Views: "
+msgstr "Aufrufe: "
 
-msgid "Videobrowser exit behavior:"
-msgstr "Verhalten nach Verlassen der Videoliste:"
+#: ../src/plugin.py:1103
+#: ../src/plugin.py:1335
+msgid "Duration: "
+msgstr "Dauer: "
 
-msgid "Videoplayer stop/exit behavior:"
-msgstr "Verhalten beim Drücken der STOPP/EXIT-Taste:"
+#: ../src/plugin.py:1103
+msgid "Ratings: "
+msgstr "Bewertungen: "
 
-msgid "View Count"
-msgstr "Aufrufe"
+#: ../src/plugin.py:1309
+msgid "Downloading screenshots. Please wait..."
+msgstr "Bilder werden geladen. Bitte warten..."
 
-msgid "View active downloads"
-msgstr "Aktive Downloads anzeigen"
+#: ../src/plugin.py:1338
+msgid "Author: "
+msgstr "Autor: "
 
-msgid "View related videos"
-msgstr "Ähnliche Videos"
+#: ../src/plugin.py:1347
+msgid "Tags: "
+msgstr "Tags: "
 
-msgid "View response videos"
-msgstr "Video Antworten"
+#: ../src/plugin.py:1350
+msgid "MyTubeVideoInfoScreen"
+msgstr "MyTubeVideoInfoScreen"
 
-msgid "Views: "
-msgstr "Aufrufe: "
+#: ../src/plugin.py:1484
+msgid "Help"
+msgstr "Hilfe"
 
-msgid ""
-"Welcome to the MyTube Youtube Player.\n"
-"\n"
-"Use the Bouqet+ button to navigate to the search field and the Bouqet- to "
-"navigate to the video entries.\n"
-"\n"
-"To play a movie just press OK on your remote control.\n"
-"\n"
-"Press info to see the movie description.\n"
-"\n"
-"Press the Menu button for additional options.\n"
-"\n"
-"The Help button shows this help again."
-msgstr ""
-"Herzlich Willkommen beim MyTube YouTube Player.\n"
-"\n"
-"Nutzen Sie die Bouqet+ Taste um zur Sucheingabe zu gelangen und die Bouqet- "
-"Taste für die Video Einträge.\n"
-"\n"
-"Um ein Video abzuspielen drücken Sie die OK-Taste auf Ihrer Fernbedienung.\n"
-"\n"
-"Mit der Info-Taste erhalten Sie die erweiterte Beschreibung zu einem Video.\n"
-"\n"
-"Für weitere Einstellungen drücken Sie die Menü-Taste.\n"
-"\n"
-"Um diese Hilfe erneut anzuzeigen, drücken Sie die Hilfe-Taste."
+#: ../src/plugin.py:1488
+msgid "This is the help screen. Feed me with something to display."
+msgstr "Dies ist die MyTube Hilfe. Bitte ausfüllen."
 
-msgid ""
-"Welcome to the MyTube Youtube Player.\n"
-"\n"
-"While entering your search term(s) you will get suggestions displayed "
-"matching your search term.\n"
-"\n"
-"To select a suggestion press DOWN on your remote, select the desired result "
-"and press OK on your remote to start the search.\n"
-"\n"
-"Press exit to get back to the input field."
-msgstr ""
-"Herzlich Willkommen beim MyTube YouTube Player.\n"
-"\n"
-"Während der Eingabe Ihres Suchwortes erhalten Sie passende Vorschläge zu "
-"Ihrer Sucheingabe.\n"
-"\n"
-"Um einen Vorschlag auszuwählen drücken Sie die NACH UNTEN-Taste, wählen den "
-"entsprechenden Eintrag aus und drücken die OK-Taste um die Suche zu "
-"starten.\n"
-"\n"
-"Um zur Such-Eingabemaske zurück zu gelangen drücken Sie die EXIT-Taste."
+#: ../src/plugin.py:1493
+msgid "MyTubeVideohelpScreen"
+msgstr "MyTubeVideohelpScreen"
 
-msgid "Yes"
-msgstr "Ja"
+#: ../src/plugin.py:1744
+msgid "No, but play video again"
+msgstr "Nein, aber Video noch mal abspielen"
 
+#: ../src/plugin.py:1745
 msgid "Yes, but play next video"
 msgstr "Ja, aber nächstes Video abspielen"
 
+#: ../src/plugin.py:1746
 msgid "Yes, but play previous video"
 msgstr "Ja, aber vorheriges Video abspielen"
 
+#: ../src/plugin.py:1749
+msgid "Stop playing this movie?"
+msgstr "Wiedergabe beenden?"
+
+#: ../src/plugin.py:1751
+msgid "No playable video found! Stop playing this movie?"
+msgstr "Kein abspielbares Video gefunden! Wiedergabe beenden?"
+
+#: ../src/plugin.py:1797
+msgid "My TubePlayer"
+msgstr "MyTube Player"
+
+#: ../src/plugin.py:1798
+msgid "Play YouTube movies"
+msgstr "YouTube Videos abspielen"
+
 #~ msgid "View Downloads"
 #~ msgstr "Downloads anzeigen"
diff --git a/mytube/src/MyTubeSearch.py b/mytube/src/MyTubeSearch.py
index be63669..a1a324c 100755
--- a/mytube/src/MyTubeSearch.py
+++ b/mytube/src/MyTubeSearch.py
@@ -1,33 +1,28 @@
+from enigma import eListboxPythonMultiContent, RT_HALIGN_LEFT, RT_HALIGN_RIGHT, gFont, eTimer
 from MyTubeService import GoogleSuggestions
 from Screens.Screen import Screen
 from Screens.LocationBox import MovieLocationBox
-from Components.config import config, Config, ConfigSelection, ConfigText, getConfigListEntry, ConfigSubsection, ConfigYesNo, ConfigIP, ConfigNumber,ConfigLocations
+from Components.config import config, ConfigText, getConfigListEntry
+from Components.config import KEY_DELETE, KEY_BACKSPACE, KEY_ASCII, KEY_TIMEOUT
 from Components.ConfigList import ConfigListScreen
-from Components.config import KEY_DELETE, KEY_BACKSPACE, KEY_LEFT, KEY_RIGHT, KEY_HOME, KEY_END, KEY_TOGGLEOW, KEY_ASCII, KEY_TIMEOUT
 from Components.ActionMap import ActionMap
 from Components.Button import Button
 from Components.Label import Label
-from Components.ScrollLabel import ScrollLabel
 from Components.Sources.List import List
-from Components.Pixmap import Pixmap
-from Components.MultiContent import MultiContentEntryText, MultiContentEntryPixmapAlphaTest
-from Components.Task import Task, Job, job_manager
-from enigma import eListboxPythonMultiContent, RT_HALIGN_LEFT, RT_HALIGN_RIGHT, gFont, eListbox,ePoint,eTimer
+from Components.MultiContent import MultiContentEntryText 
 from Components.Task import job_manager
-from Tools.Directories import pathExists, fileExists, resolveFilename, SCOPE_HDD
+from Tools.Directories import resolveFilename, SCOPE_HDD
+
 from threading import Thread
 from threading import Condition
 from xml.etree.cElementTree import parse as cet_parse
 from StringIO import StringIO
-
-
-import urllib
+#import urllib
 from urllib import FancyURLopener
 
 class MyOpener(FancyURLopener):
 	version = 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.12) Gecko/20070731 Ubuntu/dapper-security Firefox/1.5.0.12'
 
-
 class ConfigTextWithGoogleSuggestions(ConfigText):
 	class SuggestionsThread(Thread):
 		def __init__(self, suggestionsService):
@@ -151,122 +146,14 @@ class ConfigTextWithGoogleSuggestions(ConfigText):
 		if self.suggestionsWindow is not None:
 			self.suggestionsWindow.enableSelection(value)
 
-
-config.plugins.mytube = ConfigSubsection()
-config.plugins.mytube.search = ConfigSubsection()
-
-config.plugins.mytube.search.searchTerm = ConfigTextWithGoogleSuggestions("", False, threaded = True)
-config.plugins.mytube.search.orderBy = ConfigSelection(
-				[
-				 ("relevance", _("Relevance")),
-				 ("viewCount", _("View Count")),
-				 ("published", _("Published")),
-				 ("rating", _("Rating"))
-				], "relevance")
-config.plugins.mytube.search.time = ConfigSelection(
-				[
-				 ("all_time", _("All Time")),
-				 ("this_month", _("This Month")),
-				 ("this_week", _("This Week")),
-				 ("today", _("Today"))
-				], "all_time")
-config.plugins.mytube.search.racy = ConfigSelection(
-				[
-				 ("include", _("Yes")),
-				 ("exclude", _("No"))
-				], "include")
-config.plugins.mytube.search.categories = ConfigSelection(
-				[
-				 (None, _("All")),
-				 ("Film", _("Film & Animation")),
-				 ("Autos", _("Autos & Vehicles")),
-				 ("Music", _("Music")),
-				 ("Animals", _("Pets & Animals")),
-				 ("Sports", _("Sports")),
-				 ("Travel", _("Travel & Events")),
-				 ("Shortmov", _("Short Movies")),
-				 ("Games", _("Gaming")),
-				 ("Comedy", _("Comedy")),
-				 ("People", _("People & Blogs")),
-				 ("News", _("News & Politics")),
-				 ("Entertainment", _("Entertainment")),
-				 ("Education", _("Education")),
-				 ("Howto", _("Howto & Style")),
-				 ("Nonprofit", _("Nonprofits & Activism")),
-				 ("Tech", _("Science & Technology"))
-				], None)
-config.plugins.mytube.search.lr = ConfigSelection(
-				[
-				 (None, _("All")),
-				 ("au", _("Australia")),
-				 ("br", _("Brazil")),				 
-				 ("ca", _("Canada")),
-				 ("cz", _("Czech Republic")),
-				 ("fr", _("France")),
-				 ("de", _("Germany")),
-				 ("gb", _("Great Britain")),
-				 ("au", _("Australia")),
-				 ("nl", _("Holland")),
-				 ("hk", _("Hong Kong")),
-				 ("in", _("India")),
-				 ("ie", _("Ireland")),
-				 ("il", _("Israel")),
-				 ("it", _("Italy")),
-				 ("jp", _("Japan")),
-				 ("mx", _("Mexico")),
-				 ("nz", _("New Zealand")),
-				 ("pl", _("Poland")),
-				 ("ru", _("Russia")),
-				 ("kr", _("South Korea")),
-				 ("es", _("Spain")),
-				 ("se", _("Sweden")),
-				 ("tw", _("Taiwan")),
-				 ("us", _("United States")) 
-				], None)
-config.plugins.mytube.search.sortOrder = ConfigSelection(
-				[
-				 ("ascending", _("Ascending")),
-				 ("descending", _("Descending"))
-				], "ascending")
-
-config.plugins.mytube.general = ConfigSubsection()
-config.plugins.mytube.general.showHelpOnOpen = ConfigYesNo(default = True)
-config.plugins.mytube.general.loadFeedOnOpen = ConfigYesNo(default = True)
-config.plugins.mytube.general.startFeed = ConfigSelection(
-				[
-				 ("hd", _("HD videos")),
-				 ("most_viewed", _("Most viewed")),
-				 ("top_rated", _("Top rated")),
-				 ("recently_featured", _("Recently featured")),
-				 ("most_discussed", _("Most discussed")),
-				 ("top_favorites", _("Top favorites")),
-				 ("most_linked", _("Most linked")),
-				 ("most_responded", _("Most responded")),
-				 ("most_recent", _("Most recent"))
-				], "most_viewed")
-
-config.plugins.mytube.general.on_movie_stop = ConfigSelection(default = "ask", choices = [
-	("ask", _("Ask user")), ("quit", _("Return to movie list")), ("playnext", _("Play next video")), ("playagain", _("Play video again")) ])
-
-config.plugins.mytube.general.on_exit = ConfigSelection(default = "ask", choices = [
-	("ask", _("Ask user")), ("quit", _("Return to movie list"))])
-
-
 default = resolveFilename(SCOPE_HDD)
 tmp = config.movielist.videodirs.value
 if default not in tmp:
 	tmp.append(default)
-config.plugins.mytube.general.videodir = ConfigSelection(default = default, choices = tmp)
-config.plugins.mytube.general.history = ConfigText(default="")
-config.plugins.mytube.general.clearHistoryOnClose = ConfigYesNo(default = False)
-
-#config.plugins.mytube.general.useHTTPProxy = ConfigYesNo(default = False)
-#config.plugins.mytube.general.ProxyIP = ConfigIP(default=[0,0,0,0])
-#config.plugins.mytube.general.ProxyPort = ConfigNumber(default=8080)
 
 class MyTubeSuggestionsListScreen(Screen):
 	skin = """
-		<screen name="MyTubeSuggestionsListScreen" position="60,93" zPosition="6" size="610,160" flags="wfNoBorder" >
+		<screen name="MyTubeSuggestionsListScreen" title="MyTube - Search" position="60,93" zPosition="6" size="610,160" flags="wfNoBorder" >
 			<ePixmap position="0,0" zPosition="-1" size="610,160" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/MyTube/suggestions_bg.png" alphatest="on" transparent="1" backgroundColor="transparent"/>
 			<widget source="suggestionslist" render="Listbox" position="10,5" zPosition="7" size="580,150" scrollbarMode="showOnDemand" transparent="1" >
 				<convert type="TemplatedMultiContent">
@@ -366,7 +253,7 @@ class MyTubeSuggestionsListScreen(Screen):
 
 class MyTubeSettingsScreen(Screen, ConfigListScreen):
 	skin = """
-		<screen name="MyTubeSettingsScreen" flags="wfNoBorder" position="0,0" size="720,576" title="MyTubePlayerMainScreen..." >
+		<screen name="MyTubeSettingsScreen" flags="wfNoBorder" position="0,0" size="720,576" title="MyTube - Settings" >
 			<ePixmap position="0,0" zPosition="-1" size="720,576" pixmap="~/mytubemain_bg.png" alphatest="on" transparent="1" backgroundColor="transparent"/>
 			<widget name="title" position="60,50" size="600,50" zPosition="5" valign="center" halign="left" font="Regular;21" transparent="1" foregroundColor="white" shadowColor="black" shadowOffset="-1,-1" />
 			<widget name="config" zPosition="2" position="60,120" size="610,370" scrollbarMode="showOnDemand" transparent="1" />
@@ -524,7 +411,7 @@ class MyTubeSettingsScreen(Screen, ConfigListScreen):
 
 class MyTubeTasksScreen(Screen):
 	skin = """
-		<screen name="MyTubeTasksScreen" flags="wfNoBorder" position="0,0" size="720,576" title="MyTubePlayerMainScreen..." >
+		<screen name="MyTubeTasksScreen" flags="wfNoBorder" position="0,0" size="720,576" title="MyTube - Tasks" >
 			<ePixmap position="0,0" zPosition="-1" size="720,576" pixmap="~/mytubemain_bg.png" alphatest="on" transparent="1" backgroundColor="transparent"/>
 			<widget name="title" position="60,50" size="600,50" zPosition="5" valign="center" halign="left" font="Regular;21" transparent="1" foregroundColor="white" shadowColor="black" shadowOffset="-1,-1" />
 			<widget source="tasklist" render="Listbox" position="60,120" size="610,370" zPosition="7" scrollbarMode="showOnDemand" transparent="1" >
@@ -610,7 +497,7 @@ class MyTubeTasksScreen(Screen):
 
 class MyTubeHistoryScreen(Screen):
 	skin = """
-		<screen name="MyTubeHistoryScreen" position="60,93" zPosition="6" size="610,160" flags="wfNoBorder" >
+		<screen name="MyTubeHistoryScreen" position="60,93" zPosition="6" size="610,160" flags="wfNoBorder" title="MyTube - History">
 			<ePixmap position="0,0" zPosition="-1" size="610,160" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/MyTube/suggestions_bg.png" alphatest="on" transparent="1" backgroundColor="transparent"/>
 			<widget source="historylist" render="Listbox" position="10,5" zPosition="7" size="580,150" scrollbarMode="showOnDemand" transparent="1" >
 				<convert type="TemplatedMultiContent">
diff --git a/mytube/src/MyTubeService.py b/mytube/src/MyTubeService.py
index 246575c..9a1d6fd 100755
--- a/mytube/src/MyTubeService.py
+++ b/mytube/src/MyTubeService.py
@@ -1,23 +1,24 @@
 # -*- coding: iso-8859-1 -*-
-from __init__ import bin2long, long2bin, rsa_pub1024, decrypt_block
+from enigma import ePythonMessagePump
+
+from __init__ import decrypt_block
+from ThreadQueue import ThreadQueue
 import gdata.youtube
 import gdata.youtube.service
 from gdata.service import BadAuthentication
-from Tools.LoadPixmap import LoadPixmap
-from Components.config import config, Config, ConfigSelection, ConfigText, getConfigListEntry, ConfigSubsection, ConfigYesNo, ConfigIP, ConfigNumber
-from Components.ConfigList import ConfigListScreen
-from Components.config import KEY_DELETE, KEY_BACKSPACE, KEY_LEFT, KEY_RIGHT, KEY_HOME, KEY_END, KEY_TOGGLEOW, KEY_ASCII, KEY_TIMEOUT
 
 from twisted.web import client
 from twisted.internet import reactor
-from urllib2 import Request, URLError, HTTPError, urlopen as urlopen2
-from socket import gaierror,error
-import re, os, sys, socket
+from urllib2 import Request, URLError, urlopen as urlopen2
+from socket import gaierror, error
+import os, socket
 from urllib import quote, unquote_plus, unquote
-import cookielib
-from httplib import HTTPConnection,CannotSendRequest,BadStatusLine,HTTPException
-HTTPConnection.debuglevel = 1
+from httplib import HTTPConnection, CannotSendRequest, BadStatusLine, HTTPException
+
 from urlparse import parse_qs
+from threading import Thread
+
+HTTPConnection.debuglevel = 1
 
 def validate_cert(cert, key):
 	buf = decrypt_block(cert[8:], key) 
@@ -50,7 +51,7 @@ std_headers = {
 
 class GoogleSuggestions():
 	def __init__(self, callback, ds = None, json = None, hl = None):
-		self.callback = callback
+		self.gotFeed = callback
 		self.conn = HTTPConnection("google.com")
 		#GET /complete/search?output=toolbar&ds=yt&hl=en&jsonp=self.gotSuggestions&q=s
 		self.prepQuerry = "/complete/search?output=toolbar&"
@@ -63,7 +64,7 @@ class GoogleSuggestions():
 		self.prepQuerry = self.prepQuerry + "jsonp=self.gotSuggestions&q="
 
 	def gotSuggestions(self, suggestslist):
-		self.callback(suggestslist)
+		self.gotFeed(suggestslist)
 
 	def getSuggestions(self, querryString):
 		if querryString is not "":
@@ -72,22 +73,22 @@ class GoogleSuggestions():
 				self.conn.request("GET", querry)
 			except (CannotSendRequest, gaierror, error):
 				print "[MyTube]  Can not send request for suggestions"
-				self.callback(None)
+				self.gotFeed(None)
 			else:
 				try:
 					response = self.conn.getresponse()
 				except BadStatusLine:
 					print "[MyTube]  Can not get a response from google"
-					self.callback(None)
+					self.gotFeed(None)
 				else:
 					if response.status == 200:
 						data = response.read()
 						self.gotSuggestions(data)
 					else:
-						self.callback(None)
+						self.gotFeed(None)
 			self.conn.close()
 		else:
-			self.callback(None)
+			self.gotFeed(None)
 
 
 class MyTubeFeedEntry():
@@ -224,16 +225,16 @@ class MyTubeFeedEntry():
 			try:
 				infopage = urlopen2(request).read()
 				videoinfo = parse_qs(infopage)
-				if 'fmt_url_map' in videoinfo:
+				if ('url_encoded_fmt_stream_map' or 'fmt_url_map') in videoinfo:
 					break
 			except (URLError, HTTPException, socket.error), err:
 				print "[MyTube] Error: unable to download video infopage",str(err)
 				return video_url
 
-		if 'fmt_url_map' not in videoinfo:
+		if ('url_encoded_fmt_stream_map' or 'fmt_url_map') not in videoinfo:
 			# Attempt to see if YouTube has issued an error message
 			if 'reason' not in videoinfo:
-				print '[MyTube] Error: unable to extract "fmt_url_map" parameter for unknown reason'
+				print '[MyTube] Error: unable to extract "fmt_url_map" or "url_encoded_fmt_stream_map" parameter for unknown reason'
 			else:
 				reason = unquote_plus(videoinfo['reason'][0])
 				print '[MyTube] Error: YouTube said: %s' % reason.decode('utf-8')
@@ -241,22 +242,51 @@ class MyTubeFeedEntry():
 
 		video_fmt_map = {}
 		fmt_infomap = {}
-		tmp_fmtUrlDATA = videoinfo['fmt_url_map'][0].split(',')
+		if videoinfo.has_key('url_encoded_fmt_stream_map'):
+			tmp_fmtUrlDATA = videoinfo['url_encoded_fmt_stream_map'][0].split(',')
+		else:
+			tmp_fmtUrlDATA = videoinfo['fmt_url_map'][0].split(',')
 		for fmtstring in tmp_fmtUrlDATA:
-			(fmtid,fmturl) = fmtstring.split('|')
-			if VIDEO_FMT_PRIORITY_MAP.has_key(fmtid):
+			fmturl = fmtid = fmtsig = ""
+			if videoinfo.has_key('url_encoded_fmt_stream_map'):
+				try:
+					for arg in fmtstring.split('&'):
+						if arg.find('=') >= 0:
+							print arg.split('=')
+							key, value = arg.split('=')
+							if key == 'itag':
+								if len(value) > 3:
+									value = value[:2]
+								fmtid = value
+							elif key == 'url':
+								fmturl = value
+							elif key == 'sig':
+								fmtsig = value
+								
+					if fmtid != "" and fmturl != "" and fmtsig != ""  and VIDEO_FMT_PRIORITY_MAP.has_key(fmtid):
+						video_fmt_map[VIDEO_FMT_PRIORITY_MAP[fmtid]] = { 'fmtid': fmtid, 'fmturl': unquote_plus(fmturl), 'fmtsig': fmtsig }
+						fmt_infomap[int(fmtid)] = "%s&signature=%s" %(unquote_plus(fmturl), fmtsig)
+					fmturl = fmtid = fmtsig = ""
+
+				except:
+					print "error parsing fmtstring:",fmtstring
+					
+			else:
+				(fmtid,fmturl) = fmtstring.split('|')
+			if VIDEO_FMT_PRIORITY_MAP.has_key(fmtid) and fmtid != "":
 				video_fmt_map[VIDEO_FMT_PRIORITY_MAP[fmtid]] = { 'fmtid': fmtid, 'fmturl': unquote_plus(fmturl) }
-			fmt_infomap[int(fmtid)] = unquote_plus(fmturl)
+				fmt_infomap[int(fmtid)] = unquote_plus(fmturl)
 		print "[MyTube] got",sorted(fmt_infomap.iterkeys())
 		if video_fmt_map and len(video_fmt_map):
 			print "[MyTube] found best available video format:",video_fmt_map[sorted(video_fmt_map.iterkeys())[0]]['fmtid']
-			video_url = video_fmt_map[sorted(video_fmt_map.iterkeys())[0]]['fmturl']
+			best_video = video_fmt_map[sorted(video_fmt_map.iterkeys())[0]]
+			video_url = "%s&signature=%s" %(best_video['fmturl'].split(';')[0], best_video['fmtsig'])
 			print "[MyTube] found best available video url:",video_url
-		
+
 		return video_url
 	
 	def getRelatedVideos(self):
-		print "[MyTubeFeedEntry] getResponseVideos()"
+		print "[MyTubeFeedEntry] getRelatedVideos()"
 		for link in self.entry.link:
 			#print "Related link: ", link.rel.endswith
 			if link.rel.endswith("video.related"):
@@ -279,13 +309,14 @@ class MyTubePlayerService():
 		print "[MyTube] MyTubePlayerService - init"
 		self.feedentries = []
 		self.feed = None
-		
+				
 	def startService(self):
 		print "[MyTube] MyTubePlayerService - startService"
-		self.yt_service = gdata.youtube.service.YouTubeService()
-		self.yt_service.developer_key = 'AI39si4AjyvU8GoJGncYzmqMCwelUnqjEMWTFCcUtK-VUzvWygvwPO-sadNwW5tNj9DDCHju3nnJEPvFy4WZZ6hzFYCx8rJ6Mw'
-		self.yt_service.client_id = 'ytapi-dream-MyTubePlayer-i0kqrebg-0'
-		self.loggedIn = False
+		self.yt_service = gdata.youtube.service.YouTubeService( 
+			developer_key = 'AI39si4AjyvU8GoJGncYzmqMCwelUnqjEMWTFCcUtK-VUzvWygvwPO-sadNwW5tNj9DDCHju3nnJEPvFy4WZZ6hzFYCx8rJ6Mw',
+			client_id = 'ytapi-dream-MyTubePlayer-i0kqrebg-0' 
+		)
+#		self.loggedIn = False
 		#os.environ['http_proxy'] = 'http://169.229.50.12:3128'
 		#proxy = os.environ.get('http_proxy')
 		#print "FOUND ENV PROXY-->",proxy
@@ -295,23 +326,18 @@ class MyTubePlayerService():
 	def stopService(self):
 		print "[MyTube] MyTubePlayerService - stopService"
 		del self.ytService
-		self.loggedIn = False
-
-	def isLoggedIn(self):
-		return self.loggedIn
 
-	def getFeed(self, url):
+	def getFeed(self, url, callback = None, errorback = None):
 		print "[MyTube] MyTubePlayerService - getFeed:",url
 		self.feedentries = []
-		self.feed = self.yt_service.GetYouTubeVideoFeed(url)
-		for entry in self.feed.entry:
-			MyFeedEntry = MyTubeFeedEntry(self, entry)
-			self.feedentries.append(MyFeedEntry)
-		return self.feed			
+		queryThread = YoutubeQueryThread(self.yt_service.GetYouTubeVideoFeed, url, self.gotFeed, self.gotFeedError, callback, errorback)
+		queryThread.start()
+		return queryThread		
 
 	def search(self, searchTerms, startIndex = 1, maxResults = 25,
 					orderby = "relevance", racy = "include", 
-					author = "", lr = "", categories = "", sortOrder = "ascending"):
+					author = "", lr = "", categories = "", sortOrder = "ascending", 
+					callback = None, errorback = None):
 		print "[MyTube] MyTubePlayerService - search()"
 		self.feedentries = []
 		query = gdata.youtube.service.YouTubeVideoQuery()
@@ -325,17 +351,24 @@ class MyTubePlayerService():
 			query.categories = categories
 		query.start_index = startIndex
 		query.max_results = maxResults
-		try:
-			feed = self.yt_service.YouTubeQuery(query)
-		except gaierror:
-			feed = None
+		queryThread = YoutubeQueryThread(self.yt_service.YouTubeQuery, query, self.gotFeed, self.gotFeedError, callback, errorback)
+		queryThread.start()
+		return queryThread	
+	
+	def gotFeed(self, feed, callback):
 		if feed is not None:
 			self.feed = feed
 			for entry in self.feed.entry:
 				MyFeedEntry = MyTubeFeedEntry(self, entry)
 				self.feedentries.append(MyFeedEntry)
-		return self.feed		
-
+		if callback is not None:
+			callback(self.feed)
+			
+	def gotFeedError(self, exception, errorback):
+		if errorback is not None:
+			errorback(exception)
+	
+	
 	def getTitle(self):
 		return self.feed.title.text
 
@@ -354,5 +387,38 @@ class MyTubePlayerService():
 				return link.href
 		return None
 
-
+class YoutubeQueryThread(Thread):
+	def __init__(self, query, param, gotFeed, gotFeedError, callback, errorback):
+		Thread.__init__(self)
+		self.messagePump = ePythonMessagePump()
+		self.messages = ThreadQueue()
+		self.gotFeed = gotFeed
+		self.gotFeedError = gotFeedError
+		self.callback = callback
+		self.errorback = errorback
+		self.query = query
+		self.param = param
+		self.canceled = False
+		self.messagePump.recv_msg.get().append(self.finished)
+	
+	def cancel(self):
+		self.canceled = True
+	
+	def run(self):
+		try:
+			feed = self.query(self.param)
+			self.messages.push((True, feed, self.callback))
+			self.messagePump.send(0)
+		except Exception, ex:
+			self.messages.push((False, ex, self.errorback))
+			self.messagePump.send(0)			
+	
+	def finished(self, val):		
+		if not self.canceled:
+			message = self.messages.pop()
+			if message[0]:		
+				self.gotFeed(message[1], message[2])
+			else:
+				self.gotFeedError(message[1], message[2])
+		
 myTubeService = MyTubePlayerService()
diff --git a/mytube/src/ThreadQueue.py b/mytube/src/ThreadQueue.py
new file mode 100644
index 0000000..ddec604
--- /dev/null
+++ b/mytube/src/ThreadQueue.py
@@ -0,0 +1,20 @@
+from threading import Lock
+
+class ThreadQueue:
+	def __init__(self):
+		self.__list = [ ]
+		self.__lock = Lock()
+
+	def push(self, val):
+		lock = self.__lock
+		lock.acquire()
+		self.__list.append(val)
+		lock.release()
+
+	def pop(self):
+		lock = self.__lock
+		lock.acquire()
+		ret = self.__list.pop()
+		lock.release()
+		return ret
+
diff --git a/mytube/src/__init__.py b/mytube/src/__init__.py
index c8c21ef..b7b3a56 100755
--- a/mytube/src/__init__.py
+++ b/mytube/src/__init__.py
@@ -1,8 +1,7 @@
 # -*- coding: ISO-8859-1 -*-
 from Components.Language import language
 from Tools.Directories import resolveFilename, SCOPE_PLUGINS, SCOPE_LANGUAGE
-import os,gettext
-import sha
+import os, gettext, hashlib
 PluginLanguageDomain = "MyTube"
 PluginLanguagePath = "Extensions/MyTube/locale"
 
@@ -35,7 +34,7 @@ def decrypt_block(src, mod):
 	if len(src) != 128 and len(src) != 202:
 		return None
 	dest = rsa_pub1024(src[:128], mod)
-	hash = sha.new(dest[1:107])
+	hash = hashlib.sha1(dest[1:107])
 	if len(src) == 202:
 		hash.update(src[131:192])	
 	result = hash.digest()
diff --git a/mytube/src/plugin.py b/mytube/src/plugin.py
index 93b54c1..84b98c4 100755
--- a/mytube/src/plugin.py
+++ b/mytube/src/plugin.py
@@ -1,51 +1,44 @@
-from Plugins.Plugin import PluginDescriptor
-from MyTubeService import GoogleSuggestions, validate_cert, get_rnd
-from MyTubeSearch import ConfigTextWithGoogleSuggestions
-from Tools.BoundFunction import boundFunction
-from Screens.MessageBox import MessageBox
-from Screens.Screen import Screen
-from Screens.ChoiceBox import ChoiceBox
-from Screens.InfoBar import MoviePlayer
-from Screens.VirtualKeyBoard import VirtualKeyBoard
-from Components.ActionMap import ActionMap, NumberActionMap
+from Components.AVSwitch import AVSwitch
+from Components.ActionMap import ActionMap
+from Components.Button import Button
+from Components.ConfigList import ConfigListScreen
 from Components.Label import Label
-from Components.ScrollLabel import ScrollLabel
-from Components.ProgressBar import ProgressBar
+from Components.MultiContent import MultiContentEntryText, MultiContentEntryPixmapAlphaTest
 from Components.Pixmap import Pixmap
-from Components.Button import Button
+from Components.ProgressBar import ProgressBar
+from Components.ScrollLabel import ScrollLabel
+from Components.ServiceEventTracker import ServiceEventTracker
 from Components.Sources.List import List
-from Components.MultiContent import MultiContentEntryText, MultiContentEntryPixmapAlphaTest
-from Components.AVSwitch import AVSwitch
-from Components.ActionMap import HelpableActionMap
-from Components.config import config, Config, ConfigSelection, ConfigSubsection, ConfigText, getConfigListEntry, ConfigYesNo, ConfigIP, ConfigNumber,ConfigLocations
-from Components.config import KEY_DELETE, KEY_BACKSPACE, KEY_LEFT, KEY_RIGHT, KEY_HOME, KEY_END, KEY_TOGGLEOW, KEY_ASCII, KEY_TIMEOUT
-from Components.ConfigList import ConfigListScreen
-from Components.ServiceEventTracker import ServiceEventTracker, InfoBarBase
-from Components.Console import Console
-from Components.Sources.Source import Source
 from Components.Task import Task, Job, job_manager
+from Components.config import config, ConfigSelection, ConfigSubsection, ConfigText, ConfigYesNo, getConfigListEntry
+#, ConfigIP, ConfigNumber, ConfigLocations
+from MyTubeSearch import ConfigTextWithGoogleSuggestions, MyTubeSettingsScreen, MyTubeTasksScreen, MyTubeHistoryScreen
+from MyTubeService import validate_cert, get_rnd, myTubeService
+from Plugins.Plugin import PluginDescriptor
+from Screens.ChoiceBox import ChoiceBox
+from Screens.InfoBarGenerics import InfoBarNotifications
+from Screens.MessageBox import MessageBox
+from Screens.Screen import Screen
+from Screens.VirtualKeyBoard import VirtualKeyBoard
+from Tools.BoundFunction import boundFunction
+from Tools.Directories import resolveFilename, SCOPE_HDD, SCOPE_CURRENT_PLUGIN
+from Tools.Downloader import downloadWithProgress
 
-from threading import Thread
-from threading import Condition
+from __init__ import decrypt_block
 
-from Tools.Directories import pathExists, fileExists, resolveFilename, SCOPE_PLUGINS, SCOPE_SKIN_IMAGE, SCOPE_HDD, SCOPE_CURRENT_PLUGIN
-from Tools.LoadPixmap import LoadPixmap
-from Tools.Downloader import HTTPProgressDownloader, downloadWithProgress
-from enigma import eTimer, quitMainloop,eListbox,ePoint, RT_HALIGN_LEFT, RT_HALIGN_RIGHT, RT_VALIGN_CENTER, eListboxPythonMultiContent, eListbox, gFont, getDesktop, ePicLoad, eServiceCenter, iServiceInformation, eServiceReference,iSeekableService,iServiceInformation, iPlayableService, iPlayableServicePtr
-from os import path as os_path, system as os_system, unlink, stat, mkdir, popen, makedirs, listdir, access, rename, remove, W_OK, R_OK, F_OK
+from enigma import eTPM, eTimer, ePoint, RT_HALIGN_LEFT, RT_VALIGN_CENTER, gFont, ePicLoad, eServiceReference, iPlayableService
+from os import path as os_path, remove as os_remove
 from twisted.web import client
-from twisted.internet import reactor
-from time import time
 
-from Screens.InfoBarGenerics import InfoBarShowHide, InfoBarSeek, InfoBarNotifications, InfoBarServiceNotifications
-from enigma import eTPM
-from __init__ import bin2long, long2bin, rsa_pub1024, decrypt_block
+
+
 etpm = eTPM()
 rootkey = ['\x9f', '|', '\xe4', 'G', '\xc9', '\xb4', '\xf4', '#', '&', '\xce', '\xb3', '\xfe', '\xda', '\xc9', 'U', '`', '\xd8', '\x8c', 's', 'o', '\x90', '\x9b', '\\', 'b', '\xc0', '\x89', '\xd1', '\x8c', '\x9e', 'J', 'T', '\xc5', 'X', '\xa1', '\xb8', '\x13', '5', 'E', '\x02', '\xc9', '\xb2', '\xe6', 't', '\x89', '\xde', '\xcd', '\x9d', '\x11', '\xdd', '\xc7', '\xf4', '\xe4', '\xe4', '\xbc', '\xdb', '\x9c', '\xea', '}', '\xad', '\xda', 't', 'r', '\x9b', '\xdc', '\xbc', '\x18', '3', '\xe7', '\xaf', '|', '\xae', '\x0c', '\xe3', '\xb5', '\x84', '\x8d', '\r', '\x8d', '\x9d', '2', '\xd0', '\xce', '\xd5', 'q', '\t', '\x84', 'c', '\xa8', ')', '\x99', '\xdc', '<', '"', 'x', '\xe8', '\x87', '\x8f', '\x02', ';', 'S', 'm', '\xd5', '\xf0', '\xa3', '_', '\xb7', 'T', '\t', '\xde', '\xa7', '\xf1', '\xc9', '\xae', '\x8a', '\xd7', '\xd2', '\xcf', '\xb2', '.', '\x13', '\xfb', '\xac', 'j', '\xdf', '\xb1', '\x1d', ':', '?']
 
 config.plugins.mytube = ConfigSubsection()
 config.plugins.mytube.search = ConfigSubsection()
 
+
 config.plugins.mytube.search.searchTerm = ConfigTextWithGoogleSuggestions("", False, threaded = True)
 config.plugins.mytube.search.orderBy = ConfigSelection(
 				[
@@ -152,6 +145,7 @@ config.plugins.mytube.general.clearHistoryOnClose = ConfigYesNo(default = False)
 #config.plugins.mytube.general.ProxyIP = ConfigIP(default=[0,0,0,0])
 #config.plugins.mytube.general.ProxyPort = ConfigNumber(default=8080)
 
+
 class downloadJob(Job):
 	def __init__(self, url, file, title):
 		Job.__init__(self, title)
@@ -189,8 +183,6 @@ class downloadTask(Task):
 
 
 
-from MyTubeService import myTubeService
-from MyTubeSearch import MyTubeSettingsScreen,MyTubeTasksScreen,MyTubeHistoryScreen
 
 
 class MyTubePlayerMainScreen(Screen, ConfigListScreen):
@@ -198,7 +190,7 @@ class MyTubePlayerMainScreen(Screen, ConfigListScreen):
 	Details = {}
 	#(entry, Title, Description, TubeID, thumbnail, PublishedDate,Views,duration,ratings )	
 	skin = """
-		<screen name="MyTubePlayerMainScreen" flags="wfNoBorder" position="0,0" size="720,576" title="MyTubePlayerMainScreen..." >
+		<screen name="MyTubePlayerMainScreen" flags="wfNoBorder" position="0,0" size="720,576" title="MyTube - Browser" >
 			<ePixmap position="0,0" zPosition="-1" size="720,576" pixmap="~/mytubemain_bg.png" alphatest="on" transparent="1" backgroundColor="transparent"/>
 			<widget name="config" zPosition="2" position="60,60" size="600,50" scrollbarMode="showNever" transparent="1" />
 			<widget source="feedlist" render="Listbox" position="49,110" size="628,385" zPosition="1" scrollbarMode="showOnDemand" transparent="1" backgroundPixmap="~/list_bg.png" selectionPixmap="~/list_sel.png" >
@@ -248,6 +240,8 @@ class MyTubePlayerMainScreen(Screen, ConfigListScreen):
 		self.ytfeed = None
 		self.currentFeedName = None
 		self.videolist = []
+		self.queryThread = None
+		self.queryRunning = False
 
 		self.video_playlist = []
 		self.statuslist = []
@@ -339,6 +333,7 @@ class MyTubePlayerMainScreen(Screen, ConfigListScreen):
 			"nextBouquet": self.switchToConfigList,
 			"green": self.keyStdFeed,
 			"yellow": self.handleHistory,
+			"menu": self.handleMenu
 		}, -2)
 
 		self["historyactions"] = ActionMap(["ShortcutActions", "WizardActions", "MediaPlayerActions", "MovieSelectionActions", "HelpActions"],
@@ -385,10 +380,12 @@ class MyTubePlayerMainScreen(Screen, ConfigListScreen):
 		current = self["config"].getCurrent()
 		if current[1].help_window.instance is not None:
 			current[1].help_window.instance.hide()
+
 		self.statuslist.append(( _("Fetching feed entries"), _("Trying to download the Youtube feed entries. Please wait..." ) ))
 		self["feedlist"].style = "state"
 		self['feedlist'].setList(self.statuslist)
-		self.Timer.start(200)
+		self.Timer.start(200)		
+	
 	def TimerFire(self):
 		self.Timer.stop()
 		if config.plugins.mytube.general.loadFeedOnOpen.value:
@@ -473,7 +470,7 @@ class MyTubePlayerMainScreen(Screen, ConfigListScreen):
 			self.switchToConfigList()
 
 	def handleMenu(self):
-		if self.currList == "configlist":
+		if self.currList == "configlist" or self.currList == "status":
 			menulist = (
 					(_("MyTube Settings"), "settings"),
 				)
@@ -644,6 +641,7 @@ class MyTubePlayerMainScreen(Screen, ConfigListScreen):
 		config.plugins.mytube.general.history.save()
 		config.plugins.mytube.general.save()
 		config.plugins.mytube.save()
+		self.cancelThread()
 		self.close()
 			
 	def keyOK(self):
@@ -901,16 +899,8 @@ class MyTubePlayerMainScreen(Screen, ConfigListScreen):
 		self.propagateUpDownNormally = True
 
 	def getFeed(self, feedUrl, feedName):
-		try:
-			feed = myTubeService.getFeed(feedUrl)
-		except Exception, e:
-			feed = None
-			print "Error querying feed :",feedName
-			print "E-->",e
-			self.setState('Error')
-		if feed is not None:
-			self.ytfeed = feed
-		self.buildEntryList()
+		self.queryStarted()
+		self.queryThread = myTubeService.getFeed(feedUrl, self.gotFeed, self.gotFeedError)
 
 	def getNextEntries(self, result):
 		if not result:
@@ -943,26 +933,53 @@ class MyTubePlayerMainScreen(Screen, ConfigListScreen):
 			self.searchFeed(searchContext)
 
 	def searchFeed(self, searchContext):
-		print "[MyTubePlayer] searchFeed"
+		print "[MyTubePlayer] searchFeed"		
+		self.queryStarted()		
 		self.appendEntries = False
-		try:
-			feed = myTubeService.search(searchContext, 
+		self.queryThread = myTubeService.search(searchContext, 
 					orderby = config.plugins.mytube.search.orderBy.value,
 					racy = config.plugins.mytube.search.racy.value,
 					lr = config.plugins.mytube.search.lr.value,
 					categories = [ config.plugins.mytube.search.categories.value ],
-					sortOrder = config.plugins.mytube.search.sortOrder.value)
-		except Exception, e:
-			feed = None
-			print "Error querying search for :",config.plugins.mytube.search.searchTerm.value
-			print "E-->",e
-			self.setState('Error')
+					sortOrder = config.plugins.mytube.search.sortOrder.value,
+					callback = self.gotSearchFeed, errorback = self.gotSearchFeedError)
+	
+	def queryStarted(self):
+		if self.queryRunning:
+			self.cancelThread()
+		self.queryRunning = True		
+	
+	def queryFinished(self):
+		self.queryRunning = False
+	
+	def cancelThread(self):
+		print "[MyTubePlayer] cancelThread"
+		if self.queryThread is not None:
+			self.queryThread.cancel()
+		self.queryFinished()
+	
+	def gotFeed(self, feed):
+		print "[MyTubePlayer] gotFeed"
+		self.queryFinished()
 		if feed is not None:
 			self.ytfeed = feed
-		if self.FirstRun == True:	
-			self.FirstRun = False
 		self.buildEntryList()
-
+	
+	def gotFeedError(self, exception):
+		print "[MyTubePlayer] gotFeedError"
+		self.queryFinished()
+		self.setState('Error')
+	
+	def gotSearchFeed(self, feed):
+		if self.FirstRun:	
+			self.FirstRun = False
+		self.gotFeed(feed)
+	
+	def gotSearchFeedError(self, exception):
+		if self.FirstRun:	
+			self.FirstRun = False
+		self.gotFeedError(exception)
+	
 	def buildEntryList(self):
 		self.mytubeentries = None
 		self.screenshotList = []
@@ -989,7 +1006,7 @@ class MyTubePlayerMainScreen(Screen, ConfigListScreen):
 					self["feedlist"].setIndex(0)
 					self["feedlist"].setList(self.videolist)
 					self["feedlist"].updateList(self.videolist)
-					if self.FirstRun == True:	
+					if self.FirstRun and not config.plugins.mytube.general.loadFeedOnOpen.value:
 						self.switchToConfigList()
 					else:
 						self.switchToFeedList()
@@ -1157,7 +1174,7 @@ class MyTubePlayerMainScreen(Screen, ConfigListScreen):
 			if self.Details.has_key(tubeid):
 				self.Details[tubeid]["thumbnail"] = ptr
 			if (os_path.exists(thumbnailFile) == True):
-				remove(thumbnailFile)
+				os_remove(thumbnailFile)
 			del self.picloads[tubeid]
 		else:
 			del self.picloads[tubeid]
@@ -1186,7 +1203,7 @@ class MyTubePlayerMainScreen(Screen, ConfigListScreen):
 
 class MyTubeVideoInfoScreen(Screen):
 	skin = """
-		<screen name="MyTubeVideoInfoScreen" flags="wfNoBorder" position="0,0" size="720,576" title="MyTubePlayerMainScreen..." >
+		<screen name="MyTubeVideoInfoScreen" flags="wfNoBorder" position="0,0" size="720,576" title="MyTube - Video Info" >
 			<ePixmap position="0,0" zPosition="-1" size="720,576" pixmap="~/mytubemain_bg.png" alphatest="on" transparent="1" backgroundColor="transparent"/>
 			<widget name="title" position="60,50" size="600,50" zPosition="5" valign="center" halign="left" font="Regular;21" transparent="1" foregroundColor="white" shadowColor="black" shadowOffset="-1,-1" />
 			<widget name="starsbg" pixmap="~/starsbar_empty.png" position="560,220" zPosition="5" size="100,20" transparent="1" alphatest="on" />
@@ -1361,7 +1378,7 @@ class MyTubeVideoInfoScreen(Screen):
 			self.thumbnails[picindex][3] = ptr
 			if (os_path.exists(self.thumbnails[picindex][2]) == True):
 				print "removing", self.thumbnails[picindex][2]
-				remove(self.thumbnails[picindex][2])
+				os_remove(self.thumbnails[picindex][2])
 				del self.picloads[picindex]
 				if len(self.picloads) == 0:
 					self.timer.startLongTimer(3)
@@ -1400,7 +1417,7 @@ class MyTubeVideoInfoScreen(Screen):
 
 class MyTubeVideoHelpScreen(Screen):
 	skin = """
-		<screen name="MyTubeVideoHelpScreen" flags="wfNoBorder" position="0,0" size="720,576" title="MyTubePlayerMainScreen..." >
+		<screen name="MyTubeVideoHelpScreen" flags="wfNoBorder" position="0,0" size="720,576" title="MyTube - Help" >
 			<ePixmap position="0,0" zPosition="-1" size="720,576" pixmap="~/mytubemain_bg.png" alphatest="on" transparent="1" backgroundColor="transparent"/>
 			<widget name="title" position="60,50" size="600,50" zPosition="5" valign="center" halign="left" font="Regular;21" transparent="1" foregroundColor="white" shadowColor="black" shadowOffset="-1,-1" />
 			<widget name="detailtext" position="60,120" size="610,370" zPosition="10" font="Regular;21" transparent="1" halign="left" valign="top"/>
@@ -1561,7 +1578,6 @@ class MyTubePlayer(Screen, InfoBarNotifications):
 		if self.infoCallback is not None:	
 			self.infoCallback()
 
-
 	def playNextFile(self):
 		print "playNextFile"
 		nextservice,error = self.nextCallback()