mirror of
https://github.com/YunoHost-Apps/nitter_ynh.git
synced 2024-09-03 19:46:24 +02:00
remove prefs
This commit is contained in:
parent
c27e18a10a
commit
7596a978fa
4 changed files with 4 additions and 66 deletions
|
@ -35,6 +35,6 @@ replaceTwitter = "__DOMAIN__"
|
||||||
replaceYouTube = "__REPLACE_YOUTUBE__"
|
replaceYouTube = "__REPLACE_YOUTUBE__"
|
||||||
replaceReddit = "__REPLACE_REDDIT__"
|
replaceReddit = "__REPLACE_REDDIT__"
|
||||||
replaceInstagram = "__REPLACE_INSTAGRAM__"
|
replaceInstagram = "__REPLACE_INSTAGRAM__"
|
||||||
proxyVideos = __PROXY_VIDEOS__
|
proxyVideos = true
|
||||||
hlsPlayback = __HLS_PLAYBACK__
|
hlsPlayback = true
|
||||||
infiniteScroll = __INFINITE_SCROLL__
|
infiniteScroll = false
|
||||||
|
|
|
@ -115,45 +115,6 @@
|
||||||
"en": "You can choose to rewrite Reddit links in tweets to point to a Libreddit instance. Use https://libredd.it/ or install Libreddit on your server! Users can override this setting.",
|
"en": "You can choose to rewrite Reddit links in tweets to point to a Libreddit instance. Use https://libredd.it/ or install Libreddit on your server! Users can override this setting.",
|
||||||
"fr": "Vous pouvez choisir de réécrire les liens Instagram dans les tweets pour pointer vers une instance Bibliogram. Choisissez https://libredd.it/ ou installez Libreddit sur votre serveur! Les utilisateurs peuvent modifier ce paramétre."
|
"fr": "Vous pouvez choisir de réécrire les liens Instagram dans les tweets pour pointer vers une instance Bibliogram. Choisissez https://libredd.it/ ou installez Libreddit sur votre serveur! Les utilisateurs peuvent modifier ce paramétre."
|
||||||
}
|
}
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "proxy_videos",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": true,
|
|
||||||
"ask": {
|
|
||||||
"en": "Proxy Twitter videos through Nitter by default",
|
|
||||||
"fr": "Retransmettre les vidéos Twitter via le serveur par défaut"
|
|
||||||
},
|
|
||||||
"help": {
|
|
||||||
"en": "Users can override this setting",
|
|
||||||
"fr": "Les utilisateurs peuvent modifier ce paramétre"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "hls_playback",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": true,
|
|
||||||
"ask": {
|
|
||||||
"en": "Enable HLS video playback by default",
|
|
||||||
"fr": "Activer la lecture des videos HLS par défaut"
|
|
||||||
},
|
|
||||||
"help": {
|
|
||||||
"en": "Requires Javascript. Users can override this setting.",
|
|
||||||
"fr": "Cette fonctionalité requiert Javascript. Les utilisateurs peuvent modifier ce paramétre."
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "infinite_scroll",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": false,
|
|
||||||
"ask": {
|
|
||||||
"en": "Enable infinite scrolling by default",
|
|
||||||
"fr": "Activer le défilement infini par défaut"
|
|
||||||
},
|
|
||||||
"help": {
|
|
||||||
"en": "Experimental, requires Javascript. Users can override this setting.",
|
|
||||||
"fr": "Cette fonctionalité est expérimentale et requiert Javascript. Les utilisateurs peuvent modifier ce paramétre."
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,22 +28,6 @@ theme=$YNH_APP_ARG_THEME
|
||||||
replace_youtube=$YNH_APP_ARG_REPLACE_YOUTUBE
|
replace_youtube=$YNH_APP_ARG_REPLACE_YOUTUBE
|
||||||
replace_instagram=$YNH_APP_ARG_REPLACE_INSTAGRAM
|
replace_instagram=$YNH_APP_ARG_REPLACE_INSTAGRAM
|
||||||
replace_reddit=$YNH_APP_ARG_REPLACE_REDDIT
|
replace_reddit=$YNH_APP_ARG_REPLACE_REDDIT
|
||||||
|
|
||||||
if [ $YNH_APP_ARG_PROXY_VIDEOS -eq 1 ]; then
|
|
||||||
proxy_videos="true"
|
|
||||||
else
|
|
||||||
proxy_videos="false"
|
|
||||||
fi
|
|
||||||
if [ $YNH_APP_ARG_HLS_PLAYBACK -eq 1 ]; then
|
|
||||||
hls_playback="true"
|
|
||||||
else
|
|
||||||
hls_playback="false"
|
|
||||||
fi
|
|
||||||
if [ $YNH_APP_ARG_INFINITE_SCROLL -eq 1 ]; then
|
|
||||||
infinite_scroll="true"
|
|
||||||
else
|
|
||||||
infinite_scroll="false"
|
|
||||||
fi
|
|
||||||
hmac_key=$(ynh_string_random --length=64)
|
hmac_key=$(ynh_string_random --length=64)
|
||||||
|
|
||||||
app=$YNH_APP_INSTANCE_NAME
|
app=$YNH_APP_INSTANCE_NAME
|
||||||
|
@ -71,9 +55,6 @@ ynh_app_setting_set --app=$app --key=theme --value=$theme
|
||||||
ynh_app_setting_set --app=$app --key=replace_youtube --value=$replace_youtube
|
ynh_app_setting_set --app=$app --key=replace_youtube --value=$replace_youtube
|
||||||
ynh_app_setting_set --app=$app --key=replace_instagram --value=$replace_instagram
|
ynh_app_setting_set --app=$app --key=replace_instagram --value=$replace_instagram
|
||||||
ynh_app_setting_set --app=$app --key=replace_reddit --value=$replace_reddit
|
ynh_app_setting_set --app=$app --key=replace_reddit --value=$replace_reddit
|
||||||
ynh_app_setting_set --app=$app --key=proxy_videos --value=$proxy_videos
|
|
||||||
ynh_app_setting_set --app=$app --key=hls_playback --value=$hls_playback
|
|
||||||
ynh_app_setting_set --app=$app --key=infinite_scroll --value=$infinite_scroll
|
|
||||||
ynh_app_setting_set --app=$app --key=hmac_key --value=$hmac_key
|
ynh_app_setting_set --app=$app --key=hmac_key --value=$hmac_key
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -26,11 +26,7 @@ theme=$(ynh_app_setting_get --app=$app --key=theme)
|
||||||
replace_youtube=$(ynh_app_setting_get --app=$app --key=replace_youtube)
|
replace_youtube=$(ynh_app_setting_get --app=$app --key=replace_youtube)
|
||||||
replace_instagram=$(ynh_app_setting_get --app=$app --key=replace_instagram)
|
replace_instagram=$(ynh_app_setting_get --app=$app --key=replace_instagram)
|
||||||
replace_reddit=$(ynh_app_setting_get --app=$app --key=replace_reddit)
|
replace_reddit=$(ynh_app_setting_get --app=$app --key=replace_reddit)
|
||||||
proxy_videos=$(ynh_app_setting_get --app=$app --key=proxy_videos)
|
|
||||||
hls_playback=$(ynh_app_setting_get --app=$app --key=hls_playback)
|
|
||||||
infinite_scroll=$(ynh_app_setting_get --app=$app --key=infinite_scroll)
|
|
||||||
hmac_key=$(ynh_app_setting_get --app=$app --key=hmac_key)
|
hmac_key=$(ynh_app_setting_get --app=$app --key=hmac_key)
|
||||||
architecture=$YNH_ARCH
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CHECK VERSION
|
# CHECK VERSION
|
||||||
|
@ -72,7 +68,7 @@ then
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
mv "$final_path/nitter.conf" "$final_path/nitter.conf.bak"
|
mv "$final_path/nitter.conf" "$final_path/nitter.conf.bak"
|
||||||
ynh_setup_source --dest_dir="$final_path" --source_id="app"
|
ynh_setup_source --dest_dir="$final_path" --source_id="app"
|
||||||
ynh_setup_source --dest_dir="$final_path/nim-installation" --source_id="$architecture"
|
ynh_setup_source --dest_dir="$final_path/nim-installation" --source_id=$YNH_ARCH
|
||||||
mv "$final_path/nitter.conf.bak" "$final_path/nitter.conf"
|
mv "$final_path/nitter.conf.bak" "$final_path/nitter.conf"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue