Skip to content

Commit 359b541

Browse files
FEAT: Adding the Subtitle Tracks Remover Python Project
1 parent 9c1749a commit 359b541

File tree

5 files changed

+410
-0
lines changed

5 files changed

+410
-0
lines changed
240 KB
Binary file not shown.

Subtitle Tracks Remover/.gitignore

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# System Files
7+
**/.DS_Store
8+
**/Thumbs.db
9+
Icon? # match Icon<CR>
10+
**/Icon? # explicit: match at any nested level
11+
12+
# Ignore the Windows .Desktop Files
13+
**/desktop.ini
14+
15+
# Ignore the Compressed Files
16+
**/.zip
17+
**/.rar
18+
**/*.gz
19+
**/*.7z
20+
**/*.tar.gz
21+
22+
# Ignore the Data Directories
23+
# Input folders
24+
**/Input/*
25+
**/Inputs/*
26+
**/input/*
27+
**/inputs/*
28+
29+
# Output folders
30+
**/Output/*
31+
**/Outputs/*
32+
**/output/*
33+
**/outputs/*
34+
35+
# Data folders
36+
**/Dados/*
37+
**/Data/*
38+
**/dados/*
39+
**/data/*
40+
41+
# Dataset folders
42+
**/Dataset/*
43+
**/Datasets/*
44+
**/dataset/*
45+
**/datasets/*
46+
47+
# Results folders
48+
**/Result/*
49+
**/Results/*
50+
**/result/*
51+
**/results/*
52+
53+
!.assets/*
54+
55+
# Ignore the Data Files
56+
**/*.csv
57+
**/*.json
58+
**/*.xml
59+
**/*.xls
60+
**/*.xlsx
61+
**/*.txt
62+
**/*.parquet
63+
**/*.arff
64+
**/*.png
65+
**/*.jpg
66+
**/*.jpeg
67+
**/*.gif
68+
**/*.bmp
69+
**/*.tiff
70+
**/*.svg
71+
**/*.~lock*
72+
!**/requirements.txt
73+
!**/README.md
74+
75+
# Environments
76+
**/.env
77+
**/.venv
78+
**/env/
79+
**/venv/
80+
**/ENV/
81+
**/env.bak/
82+
**/venv.bak/

Subtitle Tracks Remover/Makefile

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Variables
2+
VENV := venv
3+
OS := $(shell uname 2>/dev/null || echo Windows)
4+
5+
# Detect correct Python and Pip commands based on OS
6+
ifeq ($(OS), Windows)
7+
PYTHON := $(VENV)/Scripts/python.exe
8+
PIP := $(VENV)/Scripts/pip.exe
9+
PYTHON_CMD := python
10+
CLEAR_CMD := cls
11+
TIME_CMD :=
12+
else
13+
PYTHON := $(VENV)/bin/python3
14+
PIP := $(VENV)/bin/pip
15+
PYTHON_CMD := python3
16+
CLEAR_CMD := clear
17+
TIME_CMD := time
18+
endif
19+
20+
# Main target that runs the scripts
21+
all: run
22+
23+
# Main Scripts:
24+
run: $(VENV)
25+
$(CLEAR_CMD)
26+
$(TIME_CMD) $(PYTHON) ./main.py
27+
28+
# Setup Virtual Environment and Install Dependencies
29+
$(VENV):
30+
$(PYTHON_CMD) -m venv $(VENV)
31+
$(PIP) install -r requirements.txt
32+
33+
# Install the project dependencies
34+
dependencies: $(VENV)
35+
36+
# Generate requirements.txt from the current venv
37+
generate_requirements: $(VENV)
38+
$(PIP) freeze > requirements.txt
39+
40+
# Utility rule for cleaning the project
41+
clean:
42+
rm -rf $(VENV)
43+
find . -type f -name '*.pyc' -delete || del /S /Q *.pyc 2>nul
44+
find . -type d -name '__pycache__' -delete || rmdir /S /Q __pycache__ 2>nul
45+
46+
.PHONY: run clean dependencies generate_requirements

0 commit comments

Comments
 (0)