forked from axiom-team/astrXbian
Copy Video is coming from "Open With"
This commit is contained in:
parent
baf5498d21
commit
c3a0dafb10
|
@ -29,7 +29,7 @@ ME="${0##*/}"
|
||||||
|
|
||||||
URL="$1"
|
URL="$1"
|
||||||
[ $URL ] && echo "URL: $URL" \
|
[ $URL ] && echo "URL: $URL" \
|
||||||
&& IMPORT=$(zenity --entry --width 640 --title="$URL => Astroport" --text="Choisissez comment copier cette source" --entry-text="Page" Video MP3 WebSite) \
|
&& IMPORT=$(zenity --entry --width 640 --title="$URL => Astroport" --text="Choisissez comment copier cette source" --entry-text="Video" MP3 Web) \
|
||||||
&& [[ $IMPORT == "Video" ]] && IMPORT="Youtube" \
|
&& [[ $IMPORT == "Video" ]] && IMPORT="Youtube" \
|
||||||
&& CHOICE="$IMPORT"
|
&& CHOICE="$IMPORT"
|
||||||
|
|
||||||
|
@ -109,7 +109,7 @@ case ${CAT} in
|
||||||
|
|
||||||
zenity --warning --width 600 --text 'DEVELOPPEMENT . ZONE . Please Participate https://git.p2p.legal'
|
zenity --warning --width 600 --text 'DEVELOPPEMENT . ZONE . Please Participate https://git.p2p.legal'
|
||||||
|
|
||||||
YTURL="$IMPORT"
|
YTURL="$URL"
|
||||||
[[ $YTURL == "" ]] && YTURL=$(zenity --entry --width 300 --title "Lien ou identifiant à copier" --text "Indiquez le lien (URL) ou l'ID de la vidéo" --entry-text="")
|
[[ $YTURL == "" ]] && YTURL=$(zenity --entry --width 300 --title "Lien ou identifiant à copier" --text "Indiquez le lien (URL) ou l'ID de la vidéo" --entry-text="")
|
||||||
[[ $YTURL == "" ]] && exit 1
|
[[ $YTURL == "" ]] && exit 1
|
||||||
|
|
||||||
|
@ -136,7 +136,7 @@ YNAME=$(echo "${FILE_NAME}" | cut -d "&" -f 2- | sed "s/[(][^)]*[)]//g" | sed -e
|
||||||
[[ $IMPORT != "" ]] && REVSOURCE="$(echo "$YTURL" | awk -F/ '{print $3}' | rev)_"
|
[[ $IMPORT != "" ]] && REVSOURCE="$(echo "$YTURL" | awk -F/ '{print $3}' | rev)_"
|
||||||
MEDIAID="$REVSOURCE${YID}"
|
MEDIAID="$REVSOURCE${YID}"
|
||||||
TITLE="${YNAME%.*}"
|
TITLE="${YNAME%.*}"
|
||||||
MEDIAKEY="YOUTUBE${MEDIAID}"
|
MEDIAKEY="YOUTUBE_${MEDIAID}"
|
||||||
## CORRECT PARAMETERS to Make Kodi compatible YASTRXBIAN FILE
|
## CORRECT PARAMETERS to Make Kodi compatible YASTRXBIAN FILE
|
||||||
|
|
||||||
GENRES=$(zenity --list --checklist --title="GENRE" --height=${haut} \
|
GENRES=$(zenity --list --checklist --title="GENRE" --height=${haut} \
|
||||||
|
@ -160,7 +160,7 @@ GENRES=$(zenity --list --checklist --title="GENRE" --height=${haut} \
|
||||||
|
|
||||||
# FORMAT GENRES genre1|genre2|genre3
|
# FORMAT GENRES genre1|genre2|genre3
|
||||||
|
|
||||||
FILE_PATH="$HOME/astroport/youtube/$YID"
|
FILE_PATH="$HOME/astroport/youtube/$MEDIAID"
|
||||||
mkdir -p ${FILE_PATH} && mv -f ${YTEMP}/* ${FILE_PATH}/
|
mkdir -p ${FILE_PATH} && mv -f ${YTEMP}/* ${FILE_PATH}/
|
||||||
# rename FILE_NAME to YNAME (URL clean)
|
# rename FILE_NAME to YNAME (URL clean)
|
||||||
mv "${FILE_PATH}/${FILE_NAME}" "${FILE_PATH}/${YNAME}" && FILE_NAME="${YNAME}"
|
mv "${FILE_PATH}/${FILE_NAME}" "${FILE_PATH}/${YNAME}" && FILE_NAME="${YNAME}"
|
||||||
|
@ -435,9 +435,11 @@ echo "${CAT};${MEDIAID};${YEAR};${TITLE};${SAISON};${GENRES};${GROUPES};${RES};/
|
||||||
#| < (_) | (_| | |
|
#| < (_) | (_| | |
|
||||||
#|_|\_\___/ \__,_|_|
|
#|_|\_\___/ \__,_|_|
|
||||||
# COPY UQLOAD LINKS DETECTED IN KODI LOG
|
# COPY UQLOAD LINKS DETECTED IN KODI LOG
|
||||||
|
##############################################
|
||||||
|
### TODO INSTALL FROM START and AUTO SCRAPE KODI LOG
|
||||||
|
##############################################
|
||||||
kodi)
|
kodi)
|
||||||
|
# OPTION REMOVED
|
||||||
if [[ ! -f $HOME/.local/bin/uqload_downloader ]]; then
|
if [[ ! -f $HOME/.local/bin/uqload_downloader ]]; then
|
||||||
cd /tmp
|
cd /tmp
|
||||||
git clone https://github.com/papiche/uqload_downloader.git
|
git clone https://github.com/papiche/uqload_downloader.git
|
||||||
|
|
Loading…
Reference in New Issue