Moved all python related scripts to app directory

This commit is contained in:
2017-08-14 22:42:48 +02:00
parent d2bed84ecb
commit ea97a0b4af
17 changed files with 0 additions and 0 deletions

12
app/modules/subLangfinder.py Executable file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from langdetect import detect
def main():
f = open('/Volumes/media/movies/The Man from UNCLE (2015)/The.Man.from.U.N.C.L.E.2015.1080p.nl.srt', 'r', encoding = "ISO-8859-15")
print(detect(f.read()))
f.close()
print(f.close())
if __name__ == '__main__':
main()