Giter Club home page Giter Club logo

h5ai_dplayer's Issues

关于字幕转换的问题

subtovtt.sh可以将ass,srt字幕转vtt字幕,但是ass,srt字幕的编码如果是ASCII则会报错。应该在调用ffmpeg转化之前先将ass,srt字幕的编码转化为UTF8。
subtovtt.sh相关代码我进行了调整,实现先转换编码再转换字幕

要先有安装enca

#!/bin/bash

subdir="/root/oneDrive/oneDrive"

MY_SAVEIFS=$IFS

IFS=$'\n'
function sub(){
for file in "$1"/*
do
if [[ -d "$file" && "${file:0-2}" != "_h5ai" && "${file:0-2}" != "__" ]]; then
sub "$file"
else
if [[ "${file##.}" == "ass" || "${file##.}" == "srt" ]]; then
filenotype="${file%.*}"

	echo $filetype;
	fl=$(basename $file);
	
            if [[ ! -f "${filenotype}.vtt" ]]; then
	cp $file /tmp/$fl;
	
	/usr/local/bin/enca -L zh_CN -x UTF-8 /tmp/$fl;
	mv -f /tmp/$fl $file;
	echo "change utf"$file;
              /usr/local/bin/ffmpeg -i "$file" "${filenotype}.vtt"
                # rm "$file"
            fi
        fi
    fi
done

}
sub "$subdir"
IFS=$MY_SAVEIFS

无法直连

您好,可以访问服务器docker,也ping得通,就是无法直连到h5ai,只能通过代理连接到h5ai页面。
挂代理后,通过h5ai生成的视频下载链接也不可以访问。

h5ai更新了0.30.0

本人一直在关注并使用您魔改的h5ai版本,现h5ai居然在24号更新了,特询问作者未来是否会考虑进行下适配。

文件复现

与Aria2配合时,每次重启Aria2后,Aria2默认下载文件夹已经移走的文件就会全部重新复制一份到默认下载文件夹

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.