Skip to content

Commit

Permalink
Version interface
Browse files Browse the repository at this point in the history
  • Loading branch information
NelibYT committed Jun 13, 2022
1 parent 3394f87 commit 6261f5e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ytMP4 Skin.bat
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
@echo off & title ytMP4 Skin
@echo off & title ytMP4 Skin 1.1
setlocal enabledelayedexpansion
if not exist bin\kix32.exe powershell -command "& {Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.MessageBox]::Show('Le dossier bin est introuvable ou incomplet. Vous pouvez le trouver ici: https://github.com/NelibYT/ytMP4/releases', 'ytMP4 Skin', 'OK', [System.Windows.Forms.MessageBoxIcon]::Warning)}" & exit
if not exist bin\kix32.exe powershell -command "& {Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.MessageBox]::Show('Le dossier bin est introuvable ou incomplet. Vous pouvez le trouver ici: https://github.com/NelibYT/ytMP4/releases', 'ytMP4 Skin 1.1', 'OK', [System.Windows.Forms.MessageBoxIcon]::Warning)}" & exit
echo setconsole("hide")> bin\tmp.kix & bin\kix32.exe bin\tmp.kix & if exist bin\tmp.kix del bin\tmp.kix
if not exist bin\yt-dlp.exe powershell -command "& {Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.MessageBox]::Show('Le dossier bin est introuvable ou incomplet. Vous pouvez le trouver ici: https://github.com/NelibYT/ytMP4/releases', 'ytMP4 Skin', 'OK', [System.Windows.Forms.MessageBoxIcon]::Warning)}" & exit
if not exist bin\ffmpeg.exe powershell -command "& {Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.MessageBox]::Show('Le dossier bin est introuvable ou incomplet. Vous pouvez le trouver ici: https://github.com/NelibYT/ytMP4/releases', 'ytMP4 Skin', 'OK', [System.Windows.Forms.MessageBoxIcon]::Warning)}" & exit
if not exist bin\yt-dlp.exe powershell -command "& {Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.MessageBox]::Show('Le dossier bin est introuvable ou incomplet. Vous pouvez le trouver ici: https://github.com/NelibYT/ytMP4/releases', 'ytMP4 Skin 1.1', 'OK', [System.Windows.Forms.MessageBoxIcon]::Warning)}" & exit
if not exist bin\ffmpeg.exe powershell -command "& {Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.MessageBox]::Show('Le dossier bin est introuvable ou incomplet. Vous pouvez le trouver ici: https://github.com/NelibYT/ytMP4/releases', 'ytMP4 Skin 1.1', 'OK', [System.Windows.Forms.MessageBoxIcon]::Warning)}" & exit
powershell -command "& {Add-Type -AssemblyName Microsoft.VisualBasic; [Microsoft.VisualBasic.Interaction]::InputBox('Collez le lien de votre video ici:', 'Convertisseur YouTube vers MP4')}">bin\url.tmp & set /p url=<bin\url.tmp
if "%url%"=="" if exist bin\url.tmp del bin\url.tmp & exit
if exist bin\url.tmp del bin\url.tmp
if not exist bin\yt-dlp.exe powershell -command "& {Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.MessageBox]::Show('Le dossier bin est introuvable ou incomplet. Vous pouvez le trouver ici: https://github.com/NelibYT/ytMP4/releases', 'ytMP4 Skin', 'OK', [System.Windows.Forms.MessageBoxIcon]::Warning)}" & exit
if not exist bin\ffmpeg.exe powershell -command "& {Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.MessageBox]::Show('Le dossier bin est introuvable ou incomplet. Vous pouvez le trouver ici: https://github.com/NelibYT/ytMP4/releases', 'ytMP4 Skin', 'OK', [System.Windows.Forms.MessageBoxIcon]::Warning)}" & exit
if not exist bin\yt-dlp.exe powershell -command "& {Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.MessageBox]::Show('Le dossier bin est introuvable ou incomplet. Vous pouvez le trouver ici: https://github.com/NelibYT/ytMP4/releases', 'ytMP4 Skin 1.1', 'OK', [System.Windows.Forms.MessageBoxIcon]::Warning)}" & exit
if not exist bin\ffmpeg.exe powershell -command "& {Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.MessageBox]::Show('Le dossier bin est introuvable ou incomplet. Vous pouvez le trouver ici: https://github.com/NelibYT/ytMP4/releases', 'ytMP4 Skin 1.1', 'OK', [System.Windows.Forms.MessageBoxIcon]::Warning)}" & exit
powershell -command "& {Add-Type -AssemblyName System.Windows.Forms; Add-Type -AssemblyName System.Drawing; $notify = New-Object System.Windows.Forms.NotifyIcon; $notify.Icon = [System.Drawing.SystemIcons]::Information; $notify.Visible = $true; $notify.ShowBalloonTip(0, 'ytMP4 Skin', 'Conversion en cours...', [System.Windows.Forms.ToolTipIcon]::None)}"
bin\yt-dlp.exe --update
bin\yt-dlp.exe --get-filename %url%>bin\ttl.tmp & set /p ttl=<bin\ttl.tmp
if exist bin\ttl.tmp del bin\ttl.tmp
if exist "exports\%ttl%.mp4" powershell -command "& {Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.MessageBox]::Show('Un fichier du meme nom existe deja.', 'ytMP4', 'OK', [System.Windows.Forms.MessageBoxIcon]::Warning)}" & exit
if exist "exports\%ttl%.mp4" powershell -command "& {Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.MessageBox]::Show('Un fichier du meme nom existe deja.', 'ytMP4 Skin 1.1', 'OK', [System.Windows.Forms.MessageBoxIcon]::Warning)}" & exit
if not exist exports mkdir exports
bin\yt-dlp.exe %url% --geo-bypass -f bestvideo+bestaudio --merge-output-format mp4 -o "exports\%ttl%.mp4"
if exist "exports\%ttl%.mp4" powershell -command "& {Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.MessageBox]::Show('Conversion reussie :P', 'Convertisseur YouTube vers MP4', 'OK', [System.Windows.Forms.MessageBoxIcon]::Information)}" & explorer exports
if not exist "exports\%ttl%.mp4" powershell -command "& {Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.MessageBox]::Show('Une erreur est survenue. Verifiez le lien ou votre connexion puis reessayez.', 'ytMP4 Skin', 'OK', [System.Windows.Forms.MessageBoxIcon]::Error)}" & exit
if not exist "exports\%ttl%.mp4" powershell -command "& {Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.MessageBox]::Show('Une erreur est survenue. Verifiez le lien ou votre connexion puis reessayez.', 'ytMP4 Skin 1.1', 'OK', [System.Windows.Forms.MessageBoxIcon]::Error)}" & exit

0 comments on commit 6261f5e

Please sign in to comment.