python für neutrino

Benutzeravatar
Knicko
NI - Team
Beiträge: 767
Registriert: Di 5. Apr 2016, 16:54
Box: Neo, Neo², Zee², AX-HD51, HD60
Has thanked: 9 times
Been thanked: 7 times

Re: python für neutrino

Beitrag von Knicko »

Steht ja da was fehlt

Code: Alles auswählen

ModuleNotFoundError: No module named 'unicodedata'
hast du in Efickma unicodedata oder unicodedata. so mit in Python drin?

Fehlt bei uns.
gr. Knicko

edit:
Sollte in

Code: Alles auswählen

/usr/lib/python3.11/site-packages
sein
dort ist nur ne Readme

Code: Alles auswählen

This directory exists so that 3rd party packages can be installed
here.  Read the source for site.py for more details.
MAKE NEUTRINO GREAT AGAIN!
Benutzeravatar
jokel
Beiträge: 2423
Registriert: Mi 31. Mär 2021, 14:23
Box: ZGEMMA H7/C
Has thanked: 11 times
Been thanked: 9 times

Re: python für neutrino

Beitrag von jokel »

schön und gut .. aber wann gibt es wieder ein aktuelles image ohne python
python3 löppt auf meinem laptop sowie yt-dlp .. nutze ich aber selten da ich via https://ytc.life/
mein filmchen schneller downloade .. auf die box kopiere und via mediaplayer .. geniesse
unter e2 console aufrufen und yt-dlp starten macht für mich auch keinen sinn i.p. youtube
der yt-dlp würde für mich nur sinn machen in verbindung mit einer anwendung alla satbaby
ansonsten sehe ich keinen nutzen von python im ni-images .. z.z.
satbaby
NI - VIP
Beiträge: 540
Registriert: Di 12. Apr 2016, 13:02

Re: python für neutrino

Beitrag von satbaby »

Das will ich machen. Nur zu erst muss bei mir yt-dpl laufen.;)
gruß
satbaby
NI - VIP
Beiträge: 540
Registriert: Di 12. Apr 2016, 13:02

Re: python für neutrino

Beitrag von satbaby »

Knicko hat geschrieben: Fr 3. Nov 2023, 10:41 hast du in Efickma unicodedata oder unicodedata. so mit in Python drin?

Fehlt bei uns.
gr. Knicko
Danke für info.
Meine eingma hat es nicht. Ich werde mir eine Image mit E² runterladen und schaue ob da sowas ist.

Gruß
satbaby
NI - VIP
Beiträge: 540
Registriert: Di 12. Apr 2016, 13:02

Re: python für neutrino

Beitrag von satbaby »

Läuft, aber bei yt kommt wieder was neues. :joy:

Code: Alles auswählen

[hd51] /var/root # python /usr/bin/yt-dlp --vU

Usage: yt-dlp [OPTIONS] URL [URL...]

yt-dlp: error: no such option: --vU
[hd51] /var/root # python /usr/bin/yt-dlp -g https://www.youtube.com/watch?v=AW55J2zE3N4
WARNING: [youtube] Unable to download webpage: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)
WARNING: [youtube] [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006). Retrying (1/3)...
WARNING: [youtube] [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006). Retrying (2/3)...
WARNING: [youtube] [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006). Retrying (3/3)...
WARNING: [youtube] [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006). Retrying (1/3)...
WARNING: [youtube] [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006). Retrying (2/3)...
WARNING: [youtube] [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006). Retrying (3/3)...
WARNING: [youtube] Unable to download API page: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006) (caused by CertificateVerifyError('[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)')); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
WARNING: [youtube] Unable to download webpage: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)
WARNING: [youtube] [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006). Retrying (1/3)...
WARNING: [youtube] [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006). Retrying (2/3)...
WARNING: [youtube] [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006). Retrying (3/3)...
WARNING: [youtube] Unable to download API page: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006) (caused by CertificateVerifyError('[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)')); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
ERROR: [youtube] AW55J2zE3N4: Unable to download API page: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006) (caused by CertificateVerifyError('[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)')); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
Gruß
satbaby
NI - VIP
Beiträge: 540
Registriert: Di 12. Apr 2016, 13:02

Re: python für neutrino

Beitrag von satbaby »

Ok, Onkel google hat geholfen.

Code: Alles auswählen

python /usr/bin/yt-dlp --no-check-certificate -g https://www.youtube.com/watch?v=AW55J2zE3N4
https://manifest.googlevideo.com/api/manifest/hls_playlist/expire/1699039556/ei/5PREZfm_HP-ix_AP0IqV6Aw/ip//id/016e79276cc4dcde/itag/616/source/youtube/requiressl/yes/ratebypass/yes/pfa/1/wft/1/sgovp/clen%3D9971471%3Bdur%3D248.640%3Bgir%3Dyes%3Bitag%3D356%3Blmt%3D1698950757433813/hls_chunk_host/rr5---sn-4g5lznlz.googlevideo.com/mh/hv/mm/31,26/mn/sn-4g5lznlz,sn-5hne6nsy/ms/au,onr/mv/m/mvi/5/pl/22/gcr/de/initcwndbps/1107500/vprv/1/playlist_type/DVR/dover/13/txp/5532434/mt/1699017678/fvip/1/short_key/1/keepalive/yes/fexp/24007246/beids/24350018/sparams/expire,ei,ip,id,itag,source,requiressl,ratebypass,pfa,wft,sgovp,gcr,vprv,playlist_type/sig/AGM4YrMwRgIhAN7qWTKYjK935eVuBbBy7x2vYTQBYqyLG870VjgpqZB_AiEAy9-OQdA-F3uhGabyKNIWSaD81dMm5gTOES4x17A_odM%3D/lsparams/hls_chunk_host,mh,mm,mn,ms,mv,mvi,pl,initcwndbps/lsig/AK1ks_kwRgIhAKOvpS4cLrCZxZ5lzMkXSndHtCcdQ44YdtlKGZQ3rz80AiEAraIZT7ISIQ4KbKj8EP4CD2ukWVZ7eijqnqvPXGl1v6o%3D/playlist/index.m3u8
https://rr1---sn-4g5ednkl.googlevideo.com/videoplayback?expire=1699039556&ei=5PREZbzoJ9Smx_APzMih8AE&ip=&id=o-AAci99VS7u2K1mgLC_-ILaVfefzVtvm92LM8Zp0folr1&itag=251&source=youtube&requiressl=yes&mh=hv&mm=31%2C29&mn=sn-4g5ednkl%2Csn-4g5lznlz&ms=au%2Crdu&mv=m&mvi=1&pl=22&gcr=de&initcwndbps=1107500&spc=UWF9f7U8VWKM5pfjHbzWmR_cI_H7WLc&vprv=1&svpuc=1&mime=audio%2Fwebm&gir=yes&clen=4086939&dur=248.661&lmt=1698950208624364&mt=1699017678&fvip=5&keepalive=yes&fexp=24007246&beids=24350018&c=ANDROID&txp=5532434&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cgcr%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=ANLwegAwRQIgY_AW-HVtag_lxWBIwGnaZxMF_cssH34zPPvCRlcyWcQCIQCNjlqZcPPb4KGcD_ZSAudA9qPzR8bCjPXJUdEOOpcJOA%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AM8Gb2swRgIhAK9ApYx8_YsgcTe-Odp_tJSIFrfxRdxb_6lfLeR0eQl_AiEAuoMQQJN7lZ_lJf63qTzVEesi9rdJ60k6Rqo1uFqGqfA%3D
Url ist da, jetzt kann ich basteln. :joy:

gruß
musicus
Beiträge: 152
Registriert: Di 3. Jul 2018, 21:11

Re: python für neutrino

Beitrag von musicus »

Wer es nicht abwarten kann, darf hier mal rein schauen

https://api.invidious.io/

Mit dem Links-Browser geht es (ggf. mit Luaplayer)

Nachteil: der Links-Browser speichert beim Beenden nicht die History der letzten Seiten

Ein Python Web-Browser, der die History beim Start wieder lädt, wäre super...

Ein Plugin für Neutrino, wie das von taapat wäre natürlich schon prima...
satbaby
NI - VIP
Beiträge: 540
Registriert: Di 12. Apr 2016, 13:02

Re: python für neutrino

Beitrag von satbaby »

Hier eine alpha Version als rss addon.
Natürlich muss yt-dlp auf Box laufen.
yt-dlp wird in /usr/bin/yt-dlp erwartet.
Ich muss mir die itags sortieren die auf Box laufen.
Aber geht mir das jetzt nich besonder, deswegen die alpha Version.

Gruß

//edit
kleine fix
Dateianhänge
yt_video_url.lua
(1.67 KiB) 73-mal heruntergeladen
Benutzeravatar
vanhofen
Administrator
Beiträge: 2934
Registriert: Di 5. Apr 2016, 00:05
Has thanked: 8 times
Been thanked: 16 times

Re: python für neutrino

Beitrag von vanhofen »

Cool. Danke dir.
Ich baue dann mal yt-dlp fest mit ins Image ein.
Benutzeravatar
jokel
Beiträge: 2423
Registriert: Mi 31. Mär 2021, 14:23
Box: ZGEMMA H7/C
Has thanked: 11 times
Been thanked: 9 times

Re: python für neutrino

Beitrag von jokel »

satbaby hat geschrieben: Sa 4. Nov 2023, 16:55 Ich muss mir die itags sortieren die auf Box laufen.
schau mal hier ..

vllt. ist das hilfreich
Benutzeravatar
vanhofen
Administrator
Beiträge: 2934
Registriert: Di 5. Apr 2016, 00:05
Has thanked: 8 times
Been thanked: 16 times

Re: python für neutrino

Beitrag von vanhofen »

Läuft.

Code: Alles auswählen

feedentries = {
	{ name = "100SekundenPhysik", exec = "https://www.youtube.com/feeds/videos.xml?user=100SekundenPhysik", submenu="Youtube", addon="yt" },
}
screenshot - 2023-11-05T094340.045.png
Benutzeravatar
dryeye
NI - VIP
Beiträge: 1419
Registriert: Mi 6. Apr 2016, 14:20
Wohnort: Ruhrgebiet
Box: Zgemma H7S, Axas E4HD 4K, AX HD60
Has thanked: 7 times
Been thanked: 7 times

Re: python für neutrino

Beitrag von dryeye »

vanhofen hat geschrieben: So 5. Nov 2023, 09:45 Läuft.
hier auch...außer das vereinzelte videos aus den vorhandenen feeds nicht abspielbar sind...
nach auswahl des videos fehlt im infofenster der play- bzw. downloadbutton.
siehe screenshot
screenshot.png
vielen dank @satbaby
mfg dryeye
Benutzeravatar
vanhofen
Administrator
Beiträge: 2934
Registriert: Di 5. Apr 2016, 00:05
Has thanked: 8 times
Been thanked: 16 times

Re: python für neutrino

Beitrag von vanhofen »

Dass yt-dlp in vollem Umfang genutzt werden kann, sind noch einige Abhängigkeiten nötig.
https://github.com/yt-dlp/yt-dlp#dependencies

Ich füge erstmal ffprobe und python-certifi heute Abend noch zum Image hinzu.
Benutzeravatar
vanhofen
Administrator
Beiträge: 2934
Registriert: Di 5. Apr 2016, 00:05
Has thanked: 8 times
Been thanked: 16 times

Re: python für neutrino

Beitrag von vanhofen »

Ist alles drin. --no-check-certificate kann nun weggelassen werden.

Code: Alles auswählen

/var/root # yt-dlp -U
Available version: stable@2023.10.13, Current version: stable@2023.10.13
Current Build Hash: be5cfb6be8930e1a5f427533ec32f2a481276b3da7b249d0150ce2b740ccf1ce
yt-dlp is up to date (stable@2023.10.13)
Benutzeravatar
jokel
Beiträge: 2423
Registriert: Mi 31. Mär 2021, 14:23
Box: ZGEMMA H7/C
Has thanked: 11 times
Been thanked: 9 times

Re: python für neutrino

Beitrag von jokel »

vanhofen hat geschrieben: So 5. Nov 2023, 22:40 Ist alles drin. --no-check-certificate kann nun weggelassen werden.

Code: Alles auswählen

/var/root # yt-dlp -U
Available version: stable@2023.10.13, Current version: stable@2023.10.13
Current Build Hash: be5cfb6be8930e1a5f427533ec32f2a481276b3da7b249d0150ce2b740ccf1ce
yt-dlp is up to date (stable@2023.10.13)
schön ich hatte das noch in meinen versuchen drin ..

Code: Alles auswählen

[jokel movie]# yt-dlp --no-check-certificate -f "bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4] / bv*+ba/b"  https://www.youtube.com/watch?v=ZQxc0CYqBo4
[youtube] Extracting URL: https://www.youtube.com/watch?v=ZQxc0CYqBo4
[youtube] ZQxc0CYqBo4: Downloading webpage
[youtube] ZQxc0CYqBo4: Downloading ios player API JSON
[youtube] ZQxc0CYqBo4: Downloading android player API JSON
[youtube] ZQxc0CYqBo4: Downloading m3u8 information
[info] ZQxc0CYqBo4: Downloading 1 format(s): 617+140
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 231
[download] Destination: Tunnel durch das Internet (CC2tv Folge 359) [ZQxc0CYqBo4].f617.mp4
[download] 100% of  265.92MiB in 00:01:34 at 2.82MiB/s
[download] Destination: Tunnel durch das Internet (CC2tv Folge 359) [ZQxc0CYqBo4].f140.m4a
[download] 100% of   19.15MiB in 00:00:03 at 5.15MiB/s
[Merger] Merging formats into "Tunnel durch das Internet (CC2tv Folge 359) [ZQxc0CYqBo4].mp4"
Deleting original file Tunnel durch das Internet (CC2tv Folge 359) [ZQxc0CYqBo4].f140.m4a (pass -k to keep)
Deleting original file Tunnel durch das Internet (CC2tv Folge 359) [ZQxc0CYqBo4].f617.mp4 (pass -k to keep)
[jokel movie]# 
Benutzeravatar
jokel
Beiträge: 2423
Registriert: Mi 31. Mär 2021, 14:23
Box: ZGEMMA H7/C
Has thanked: 11 times
Been thanked: 9 times

Re: python für neutrino

Beitrag von jokel »

Code: Alles auswählen

[jokel movie]# yt-dlp -f "bv*[ext=22]+ba[ext=140]/b[ext=mp4] / bv*+ba/b"  https://www.youtube.com/watch?v=ZQxc0CYqBo4
Available version: stable@2023.10.13, Current version: stable@2023.10.13
Current Build Hash: be5cfb6be8930e1a5f427533ec32f2a481276b3da7b249d0150ce2b740ccf1ce
yt-dlp is up to date (stable@2023.10.13)
[youtube] Extracting URL: https://www.youtube.com/watch?v=ZQxc0CYqBo4
[youtube] ZQxc0CYqBo4: Downloading webpage
[youtube] ZQxc0CYqBo4: Downloading ios player API JSON
[youtube] ZQxc0CYqBo4: Downloading android player API JSON
[youtube] ZQxc0CYqBo4: Downloading m3u8 information
[info] ZQxc0CYqBo4: Downloading 1 format(s): 22
[download] Destination: Tunnel durch das Internet (CC2tv Folge 359) [ZQxc0CYqBo4].mp4
[download] 100% of   80.36MiB in 00:00:14 at 5.58MiB/s
[jokel movie]# ffprobe *.mp4
[jokel movie]# 
ffprobe macht keine ausgabe ?
Benutzeravatar
jokel
Beiträge: 2423
Registriert: Mi 31. Mär 2021, 14:23
Box: ZGEMMA H7/C
Has thanked: 11 times
Been thanked: 9 times

Re: python für neutrino

Beitrag von jokel »

dryeye hat geschrieben: So 5. Nov 2023, 11:36
hier auch...außer das vereinzelte videos aus den vorhandenen feeds nicht abspielbar sind...
nach auswahl des videos fehlt im infofenster der play- bzw. downloadbutton.
ändere mal die zeilen in yt_video_url.lua von

Bild

in

Code: Alles auswählen

if video ~= nil then
       media.VideoUrl = video
else
       media.VideoUrl = urls[22]
end
ist ein fallback auf 1280x720
und voila die buttons sollten da sein ..
Benutzeravatar
jokel
Beiträge: 2423
Registriert: Mi 31. Mär 2021, 14:23
Box: ZGEMMA H7/C
Has thanked: 11 times
Been thanked: 9 times

Re: python für neutrino

Beitrag von jokel »

oh ich sehe das das video nur in 360p ist
dann musst du statt

Code: Alles auswählen

urls[22]
die

Code: Alles auswählen

urls[18]
nehmen / ändern
Dateianhänge
screenshot (2).png
screenshot (1).png
satbaby
NI - VIP
Beiträge: 540
Registriert: Di 12. Apr 2016, 13:02

Re: python für neutrino

Beitrag von satbaby »

Hier version auch für webtv.
Bitte nich laufende yt urls melden.
gruß
ps. Bei mir ist noch mit --no-check-certificate, weil ich noch alte python habe. Wer es nicht brauch, kann es wegmachen.
Dateianhänge
yt_live.lua
(2.7 KiB) 62-mal heruntergeladen
yt_video_url.lua
(1.68 KiB) 66-mal heruntergeladen
Benutzeravatar
dryeye
NI - VIP
Beiträge: 1419
Registriert: Mi 6. Apr 2016, 14:20
Wohnort: Ruhrgebiet
Box: Zgemma H7S, Axas E4HD 4K, AX HD60
Has thanked: 7 times
Been thanked: 7 times

Re: python für neutrino

Beitrag von dryeye »

@satbaby

vielen dank...
hier laufen bisher alle videos aus meinen feeds.
gibt es denn mittlerweile eine möglichkeit die videoanzahl in den einzelnen feeds auf größer 15 videos zu setzen?
mfg dryeye
Antworten

Zurück zu „Allgemein“