test for branch rebase and merge
Go to file
freezed e7668fafe1 🏗 Wrap CLI code in main()
Idiomatic `__main__` usage to ease (future) tests and code structure
see: https://docs.python.org/3/library/__main__.html#idiomatic-usage
2022-12-06 01:38:47 +01:00
.gitignore 🔨 Apply black formatting to project 2022-12-06 01:38:47 +01:00
LICENSE.md 📄 Change from WTFPL to AGPL 2022-12-05 23:56:10 +01:00
Makefile 🔨 Apply pydocstyle to project 2022-12-06 01:38:47 +01:00
README.md 🔨 Apply pydocstyle to project 2022-12-06 01:38:47 +01:00
delarte.py 🏗 Wrap CLI code in main() 2022-12-06 01:38:47 +01:00
requirements-dev.txt 🔨 Apply pydocstyle to project 2022-12-06 01:38:47 +01:00
requirements.txt 📝 Document usage 2022-12-06 01:38:47 +01:00

README.md

delarte

🚧 Du code a mettre au propre, dans le seul but de faire du python

💡 Mais cest quoi?

Récupérer un flux vidéo dans un fichier local avec sous titres.

🚀 Chauffe Marcel!

(pour distribution de famille Debian, adapter les commandes sinon)

git clone https://git.afpy.org/fcode/delarte.git && cd delarte
sudo apt install ffmpeg
mkdir ~/.venvs && python3 -m venv ~/.venvs/delarte
source ~/.venvs/delarte/bin/activate
pip install -r requirements.txt
export PATH_FFMPEG=$(which ffmpeg)
./delarte.py https://www.arte.tv/fr/videos/093644-001-A/meaningless_strings_but_mandatory/
L'incroyable périple de Magellan (1/4)
        VF : Français
        VO-STF : Version originale - ST français
        VF-STMF : Français (sourds et malentendants)
        VFAUD : Français (audiodescription)
        VA-STA : Allemand
        VA-STMA : Allemand (sourds et malentendants)
        VAAUD : Allemand (audiodescription)

Rajouter le code sous-titre en paramètre:

./delarte.py https://www.arte.tv/fr/videos/093644-001-A/meaningless_strings_but_mandatory/ VO-STF

🔧 Tripoter sous le capot

🚀 Chauffe Marcel!

  • Python 3.10 à été utilisé
  • Code formaté avec black & pydocstyle
  • Installation des outils de développement:
    • pip install -r requirements-dev.txt
  • Un Makefile équipé: executer make help pour le détail
  • Un git hook de pre-commit
    • make init-pre_commit

📌 Dépendances

Voir requirements.txt & requirements-dev.txt

🤝 Filer un coup de main