Skip to content

Commit 8210a31

Browse files
authored
New server list popup
1 parent e5eeac8 commit 8210a31

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+4440
-2374
lines changed

Data/servers.xml

Lines changed: 42 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,23 @@
2121
%appdata%\Uptooda\Servers\ (если вы использовали инсталлятор)
2222
Создайте там XML файл с такой же структурой, как у текущего файла.
2323
-->
24-
<Server Name="ImageBan.ru" Authorize="2" Plugin="imageban" WebsiteUrl="https://imageban.ru" RegistrationUrl="https://imageban.ru/u/register">
24+
<Server Name="ImageBan.ru" Types="image video" Authorize="2" Plugin="imageban" WebsiteUrl="https://imageban.ru" RegistrationUrl="https://imageban.ru/u/register">
2525
<Info>
2626
<SupportedFormats>
27-
<FormatGroup>
27+
<FormatGroup MaxFileSize="10485760" UserTypes="anon, reg">
2828
<Format MimeType="image/bmp">*.bmp</Format>
2929
<Format MimeType="image/jpeg">*.jpg,*.jpeg</Format>
3030
<Format MimeType="image/png">*.png</Format>
3131
<Format MimeType="image/gif">*.gif</Format>
3232
<Format MimeType="image/webp">*.webp</Format>
33+
<Format MimeType="video/webm">*.webm</Format>
3334
</FormatGroup>
34-
<FormatGroup>
35+
<FormatGroup MaxFileSize="20971520" UserTypes="gold">
36+
<Format MimeType="image/bmp">*.bmp</Format>
37+
<Format MimeType="image/jpeg">*.jpg,*.jpeg</Format>
38+
<Format MimeType="image/png">*.png</Format>
39+
<Format MimeType="image/gif">*.gif</Format>
40+
<Format MimeType="image/webp">*.webp</Format>
3541
<Format MimeType="video/webm">*.webm</Format>
3642
</FormatGroup>
3743
</SupportedFormats>
@@ -40,7 +46,7 @@
4046
</Actions>
4147
<Result ImageUrlTemplate="stub" ThumbUrlTemplate="stub"/>
4248
</Server>
43-
<Server Name="imgur.com" Type="image" Types="image file" Authorize="1" Plugin="imgur" NeedPassword="0" WebsiteUrl="https://imgur.com"
49+
<Server Name="imgur.com" Type="image" Types="image file video" Authorize="1" Plugin="imgur" NeedPassword="0" WebsiteUrl="https://imgur.com"
4450
RegistrationUrl="https://imgur.com/register" MaxThreads="1">
4551
<Info>
4652
<SupportedFormats>
@@ -211,7 +217,7 @@
211217
</Actions>
212218
<Result DownloadUrlTemplate="http://sendfile.su/$(FileId)"/>
213219
</Server>
214-
<Server Name="flickr.com" FileHost="1" NeedPassword="0" Authorize="2" Debug="0" Plugin="flickr" SupportsFolders="1" WebsiteUrl="https://flickr.com"
220+
<Server Name="flickr.com" Types="image video" NeedPassword="0" Authorize="2" Debug="0" Plugin="flickr" SupportsFolders="1" WebsiteUrl="https://flickr.com"
215221
RegistrationUrl="https://identity.flickr.com/sign-up">
216222
<Info>
217223
<SupportedFormats>
@@ -372,7 +378,16 @@
372378
</Actions>
373379
<Result ImageUrlTemplate="stub" ThumbUrlTemplate="stub"/>
374380
</Server>
375-
<Server Name="abcvg.org" MaxFileSize="10000000" Plugin="abcvg" WebsiteUrl="https://abcvg.org">
381+
<Server Name="abcvg.org" MaxFileSize="10485760" Plugin="abcvg" WebsiteUrl="https://abcvg.org">
382+
<Info>
383+
<SupportedFormats>
384+
<FormatGroup MaxFileSize="10485760" UserTypes="reg">
385+
<Format MimeType="image/jpeg">*.jpg,*.jpeg</Format>
386+
<Format MimeType="image/png">*.png</Format>
387+
<Format MimeType="image/gif">*.gif</Format>
388+
</FormatGroup>
389+
</SupportedFormats>
390+
</Info>
376391
<Actions>
377392
</Actions>
378393
<Result ImageUrlTemplate="stub"/>
@@ -404,12 +419,21 @@
404419
</Actions>
405420
<Result DownloadUrlTemplate="$(FileId)" DeleteUrl="$(DeleteUrl)"/>
406421
</Server>
407-
<Server Name="freeimage.host" Authorize="0" Type="image" Plugin="freeimage.host" WebsiteUrl="https://freeimage.host/">
422+
<Server Name="freeimage.host" MaxFileSize="67108864" Authorize="0" Type="image" Plugin="freeimage.host" WebsiteUrl="https://freeimage.host/">
408423
<Actions>
409424
</Actions>
410425
<Result ImageUrlTemplate="stub" ThumbUrlTemplate="stub"/>
411426
</Server>
412-
<Server Name="pixhost.to" Authorize="0" Type="image" Plugin="pixhost.to" MaxFileSize="10000000" WebsiteUrl="https://pixhost.to">
427+
<Server Name="pixhost.to" Authorize="0" Type="image" Plugin="pixhost.to" MaxFileSize="10485760" WebsiteUrl="https://pixhost.to">
428+
<Info>
429+
<SupportedFormats>
430+
<FormatGroup MaxFileSize="10485760">
431+
<Format MimeType="image/jpeg">*.jpg,*.jpeg</Format>
432+
<Format MimeType="image/png">*.png</Format>
433+
<Format MimeType="image/gif">*.gif</Format>
434+
</FormatGroup>
435+
</SupportedFormats>
436+
</Info>
413437
<Actions>
414438
</Actions>
415439
<Result DownloadUrlTemplate="stub" ThumbUrlTemplate="stub"/>
@@ -511,10 +535,10 @@
511535
</Actions>
512536
<Result ImageUrlTemplate="$(Image)" ThumbUrlTemplate="$(Thumb)" DownloadUrlTemplate="$(View)" />
513537
</Server>
514-
<Server Name="dubz.co" Authorize="1" Type="file" Plugin="dubz" WebsiteUrl="https://dubz.co/" RegistrationUrl="https://dubz.co/register" LoginLabel="Email">
538+
<Server Name="dubz.co" Authorize="1" Type="video" Plugin="dubz" WebsiteUrl="https://dubz.co/" RegistrationUrl="https://dubz.co/register" LoginLabel="Email">
515539
<Info>
516540
<SupportedFormats>
517-
<FormatGroup MaxFileSize="100000000">
541+
<FormatGroup MaxFileSize="100000000" UserTypes="anon">
518542
<Format MimeType="video/mp4">*.mp4</Format>
519543
<Format MimeType="video/quicktime">*.mov</Format>
520544
<Format MimeType="audio/mpeg">*.mp3</Format>
@@ -535,7 +559,7 @@
535559
</Actions>
536560
<Result ImageUrlTemplate="stub" DownloadUrlTemplate="stub"/>
537561
</Server>
538-
<Server Name="imgspace.online" Types="image file" Authorize="2" MaxFileSize="100000000" WebsiteUrl="https://imgspace.online/"
562+
<Server Name="imgspace.online" Types="image file video" Authorize="2" MaxFileSize="100000000" WebsiteUrl="https://imgspace.online/"
539563
RegistrationUrl="https://imgspace.online/signup" PasswordLabel="API key">
540564
<Info>
541565
<SupportedFormats>
@@ -562,11 +586,11 @@
562586
</Actions>
563587
<Result ImageUrlTemplate="$(ImageUrl)" ThumbUrlTemplate="$(ThumbUrl)" DownloadUrlTemplate="$(ViewUrl)" DeleteUrl="$(DeleteUrl)" />
564588
</Server>
565-
<Server Name="gifyu.com" MaxFileSize="50000000" WebsiteUrl="https://gifyu.com/"
589+
<Server Name="gifyu.com" MaxFileSize="52428800" WebsiteUrl="https://gifyu.com/"
566590
RegistrationUrl="https://gifyu.com/signup">
567591
<Info>
568592
<SupportedFormats>
569-
<FormatGroup MaxFileSize="50000000">
593+
<FormatGroup MaxFileSize="52428800">
570594
<Format MimeType="image/jpeg">*.jpg,*.jpeg</Format>
571595
<Format MimeType="image/png">*.png</Format>
572596
<Format MimeType="image/gif">*.gif</Format>
@@ -605,7 +629,7 @@
605629
</Actions>
606630
<Result ImageUrlTemplate="$(DirectUrl)" ThumbUrlTemplate="$(ThumbUrl)" DownloadUrlTemplate="$(ViewUrl)" DeleteUrl="$(DeleteUrl)"/>
607631
</Server>
608-
<Server Name="1file.su" FileHost="1" WebsiteUrl="https://1file.su" MaxThreads="1">
632+
<Server Name="1file.su" FileHost="1" MaxFileSize="524288000" WebsiteUrl="https://1file.su" MaxThreads="1">
609633
<Actions>
610634
<Action Type="get" Url="https://1file.su" RegExp="_token&quot;\s+value=&quot;(.+?)&quot;" AssignVars="Token:0"/>
611635
<Action Type="upload" Url="https://1file.su/upload-file" PostParams="_token=$(Token);files[]=%filename%;">
@@ -642,7 +666,7 @@
642666
</Actions>
643667
<Result DownloadUrlTemplate="stub"/>
644668
</Server>
645-
<Server Name="take-me-to.space" FileHost="1" Authorize="2" Plugin="take-me-to.space" WebsiteUrl="https://take-me-to.space" NeedPassword="0">
669+
<Server Name="take-me-to.space" MaxFileSize="52428800" FileHost="1" Authorize="2" Plugin="take-me-to.space" WebsiteUrl="https://take-me-to.space" NeedPassword="0">
646670
<Actions>
647671
</Actions>
648672
<Result ImageUrlTemplate="stub"/>
@@ -668,7 +692,7 @@
668692
<Result ImageUrlTemplate="stub" ThumbUrlTemplate="stub" DownloadUrlTemplate="stub"/>
669693
</Server>
670694
<!-- Chevereto v4 uploader -->
671-
<Server Name="freeimghost.net" Authorize="2" FileHost="1" MaxFileSize="52428800" Plugin="freeimghost.net" WebsiteUrl="https://freeimghost.net/" RegistrationUrl="https://freeimghost.net/signup" PasswordLabel="API key">
695+
<Server Name="freeimghost.net" Authorize="2" Types="image video" MaxFileSize="52428800" Plugin="freeimghost.net" WebsiteUrl="https://freeimghost.net/" RegistrationUrl="https://freeimghost.net/signup" PasswordLabel="API key">
672696
<Info>
673697
<SupportedFormats>
674698
<FormatGroup MaxFileSize="52428800" UserTypes="reg">
@@ -731,7 +755,7 @@
731755
</Actions>
732756
<Result ImageUrlTemplate="stub" ThumbUrlTemplate="stub" DownloadUrlTemplate="stub" DeleteUrl="stub"/>
733757
</Server>
734-
<Server Name="thumbsnap.com" FileHost="1" Authorize="2" MaxFileSize="50331648" Plugin="thumbsnap" WebsiteUrl="https://thumbsnap.com/" RegistrationUrl="https://thumbsnap.com/users/signup" PasswordLabel="API key">
758+
<Server Name="thumbsnap.com" Types="image video" Authorize="2" MaxFileSize="50331648" Plugin="thumbsnap" WebsiteUrl="https://thumbsnap.com/" RegistrationUrl="https://thumbsnap.com/users/signup" PasswordLabel="API key">
735759
<Info>
736760
<SupportedFormats>
737761
<FormatGroup MaxFileSize="50331648" UserTypes="reg">
@@ -767,7 +791,7 @@
767791
</Actions>
768792
<Result ImageUrlTemplate="stub" ThumbUrlTemplate="stub" DeleteUrl="stub"/>
769793
</Server>
770-
<Server Name="savefiles.com" MaxFileSize="21474836480" FileHost="1" Authorize="2" Plugin="savefiles" SupportsFolders="1" WebsiteUrl="https://savefiles.com/" RegistrationUrl="https://savefiles.com/?op=registration" PasswordLabel="API key" MaxThreads="1">
794+
<Server Name="savefiles.com" MaxFileSize="21474836480" Type="video" Authorize="2" Plugin="savefiles" SupportsFolders="1" WebsiteUrl="https://savefiles.com/" RegistrationUrl="https://savefiles.com/?op=registration" PasswordLabel="API key" MaxThreads="1">
771795
<Info>
772796
<SupportedFormats>
773797
<FormatGroup MaxFileSize="21474836480" UserTypes="reg">

Data/servers.xsd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
<xs:simpleType name="ServerType">
2727
<xs:restriction base="xs:string">
2828
<xs:enumeration value="file" />
29-
<xs:enumeration value="get" />
3029
<xs:enumeration value="image" />
3130
<xs:enumeration value="urlshortening" />
3231
<xs:enumeration value="searchbyimage" />
32+
<xs:enumeration value="video" />
3333
</xs:restriction>
3434
</xs:simpleType>
3535
<xs:simpleType name="ServerTypes">
@@ -41,6 +41,7 @@
4141
<xs:enumeration value="file"/>
4242
<xs:enumeration value="image"/>
4343
<xs:enumeration value="urlshortening"/>
44+
<xs:enumeration value="video"/>
4445
</xs:restriction>
4546
</xs:simpleType>
4647
</xs:list>

Lang/generate_pot.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
find ../Source/ -type d \( -path "../Source/qimageuploader" -o -path "../Source/QtIUHelper" -\) -prune -o -type f \( -iname \*.cpp -o -iname \*.h \) -print | xargs -d '\n' xgettext --from-code=UTF-8 --default-domain=imageuploader --keyword=_ --keyword=_c:1c,2 --keyword=_n:1,2 --keyword=_nc:1c,2,3 --keyword=tr --keyword=TR --keyword=TRC:2 --keyword=TR_CONST --language=C++ --sort-output --package-name=imageuploader --copyright-holder="Sergey Svistunov <[email protected]>" -o imageuploader.pot
2+
find ../Source/ -type d \( -path "../Source/qimageuploader" -o -path "../Source/QtIUHelper" -\) -prune -o -type f \( -iname \*.cpp -o -iname \*.h \) -print | xargs -d '\n' xgettext --from-code=UTF-8 --default-domain=imageuploader --keyword=_ --keyword=_c:1c,2 --keyword=TRCC:2c,3 --keyword=_n:1,2 --keyword=_nc:1c,2,3 --keyword=tr --keyword=TR --keyword=TRC:2 --keyword=TR_CONST --language=C++ --sort-output --package-name=imageuploader --copyright-holder="Sergey Svistunov <[email protected]>" -o imageuploader.pot
33
for PO_FILE in locale/*/LC_MESSAGES/imageuploader.po
44
do
55
msgmerge -U --previous --backup=off "$PO_FILE" imageuploader.pot

0 commit comments

Comments
 (0)