Fixed Evload and Uqload extractor (#676)

* fixed the extractor not working when no flags provided

* updated and added some french translation
This commit is contained in:
Sarlay 2022-02-18 19:42:58 +00:00 committed by GitHub
parent ddab37c08d
commit 01ab3085bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 4 deletions

View file

@ -26,8 +26,12 @@ open class Evoload : ExtractorApi() {
} else {
""
}
val cleaned_url = url.substring(2, url.length)
val cleaned_url = if (lang == "ht") { // if url doesn't contain a flag and the url starts with http://
url
} else {
url.substring(2, url.length)
}
//println(lang)
//println(cleaned_url)

View file

@ -25,7 +25,12 @@ open class Uqload : ExtractorApi() {
} else {
""
}
val cleaned_url = url.substring(2, url.length)
val cleaned_url = if (lang == "ht") { // if url doesn't contain a flag and the url starts with http://
url
} else {
url.substring(2, url.length)
}
with(app.get(cleaned_url)) { // raised error ERROR_CODE_PARSING_CONTAINER_UNSUPPORTED (3003) is due to the response: "error_nofile"
srcRegex.find(this.text)?.groupValues?.get(1)?.replace("\"", "")?.let { link ->
return listOf(

View file

@ -99,6 +99,9 @@
<string name="swipe_to_change_settings">Balayer pour changer les paramètres</string>
<string name="swipe_to_change_settings_des">Balayer sur le coté droit ou gauche pour changer le niveau de luminosité ou de volume</string>
<string name="double_tap_to_seek_settings">Taper deux fois pour rechercher</string>
<string name="double_tap_to_pause_settings">Taper deux fois pour mettre en pause</string>
<string name="double_tap_to_seek_settings_des">Taper deux fois sur le coté droit ou gauche pour avancer ou reculer</string>
<string name="search">Rechercher</string>
<string name="settings_info">Informations</string>
@ -176,10 +179,14 @@
<string name="dont_show_again">Ne pas afficher à nouveau</string>
<string name="update">Mettre à jour</string>
<string name="dns_pref_summary">Utile pour contourner les bloquages des FAI</string>
<string name="download_path_pref">Emplacement de téléchargement</string>
<string name="new_update_format" formatted="true">Nouvelle mise à jour trouvée !
\n%s -&gt; %s</string>
<string name="filler" formatted="true">Épisode spécial</string>
<string name="watch_quality_pref">Qualité de visionnage préférée</string>
<string name="video_cache_settings">Taille de la mémoire cache</string>
<string name="resize_fill">Étendre</string>
<string name="legal_notice">Non-responsabilité</string>
<string name="primary_color_settings">Couleur principale</string>