xym / VideoHeightHandler
0 j'aimes
0 forks
1 fichiers
Dernière activité
| 1 | import os |
| 2 | import shutil |
| 3 | import subprocess |
| 4 | import concurrent.futures |
| 5 | from pathlib import Path |
| 6 | from datetime import datetime |
| 7 | |
| 8 | # 指定ffmpeg的二进制文件夹位置,如果ffmpeg不在系统PATH中 |
| 9 | FFMPEG_BIN = "C:\\ffmpeg-7.0.2-full_build\\bin\\" # 请根据实际情况修改路径 |
xym / audiocheck.py
0 j'aimes
0 forks
1 fichiers
Dernière activité
| 1 | import argparse |
| 2 | import os |
| 3 | import subprocess |
| 4 | import sys |
| 5 | |
| 6 | # 定义ffmpeg支持的音频文件格式后缀列表 |
| 7 | AUDIO_EXTENSIONS = ( |
| 8 | '.aac', '.aiff', '.alac', '.amr', '.ape', '.au', '.flac', |
| 9 | '.m4a', '.mp3', '.ogg', '.opus', '.wav', '.wma', '.webm' |
| 10 | ) |
xym / Unsplash Collection Random
0 j'aimes
0 forks
2 fichiers
Dernière activité
| 1 | <?php |
| 2 | // 目标链接 |
| 3 | $targetUrl = 'https://source.unsplash.com/collection/2094000/800x400'; |
| 4 | |
| 5 | // 创建 cURL 资源 |
| 6 | $ch = curl_init($targetUrl); |
| 7 | |
| 8 | // 设置 cURL 选项 |
| 9 | curl_setopt_array($ch, [ |
| 10 | CURLOPT_USERAGENT => $_SERVER['HTTP_USER_AGENT'], |
xym / missav-magnet
0 j'aimes
0 forks
1 fichiers
Dernière activité
| 1 | import pyperclip |
| 2 | import re |
| 3 | import time |
| 4 | |
| 5 | def extract_link_from_clipboard(): |
| 6 | clipboard_content = pyperclip.paste() |
| 7 | # 更新正则表达式以匹配整个URL,但只捕获magnet部分 |
| 8 | pattern = r'https://keepshare\.org/[a-zA-Z0-9]+/(magnet:\?xt=urn:btih:[a-zA-Z0-9]+(?:&[\w%\-.\[\]=]+)*)' |
| 9 | match = re.search(pattern, clipboard_content) |
| 10 | if match: |
Plus récent
Plus ancien