Comments (3)
2번의 경우에는 자막에 p 태그가 없을 때 확인됩니다.
에러 자막 예시 : https://cloud.bulzipke.com/s/Yzt64CwLqWdPsow
split_content 메서드에서 아래와 같이 표준화(?)를 해줘서 우회 할 수 있긴 한데 원하시는 방법은 아닐 것 같네요.
def split_content(string, tag):
threshold = '<'+tag
if tag is 'p':
standard = threshold + ' Class=' + LANG + '>'
if standard.upper() not in string.upper():
idx = string.find('>') + 1
string = string[:idx] + standard + string[idx:]
return list(map(
lambda item: (threshold+item).strip(),
re.split(threshold, string, flags=re.I)
))[1:]
유익한 프로젝트 감사드립니다 :)
from smi2srt.
- 폴더 내에 srt확장자가 있는 경우 변환 skip이 되도록 하는 기능을 추가해보겠습니다
- 변환중 멈춰버리는 파일 예를 메일로 보내주실 수 있을까요?
from smi2srt.
Bulzipke 님의 방법을 참고하겠습니다
근데 배포되는 smi 파일들이 표준이 없이 너무 난잡해서... 최종버전이라는게 있을 수 없을 것 같다는 생각이 드네요 ㅋㅋㅋ
혹여 모를 다른 오류로 진행이 멈춰버리는 상황을 방지하기 위해 멀티 프로세싱과 타임아웃 처리도 도입해봐야겠네요
from smi2srt.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smi2srt.