The script is designed to search for subtitle files in a specified folder and its subfolders. It copies the subtitle file with the desired language to the parent folder and renames it based on the corresponding video file.
The script simplifies the process of copying subtitle files from "Subs" subfolder to its specified parent folder for TV Series download from RARBG. It automatically looks for video files in the folder and its subfolders and matches them with the desired language subtitles. The script then copies the subtitle files to the parent folder, renaming them to match the corresponding video file.
Note: This script is intended to facilitate the management of legitimate and legally acquired subtitle files for personal use. It is not intended or endorsed for use in any form of piracy or unauthorized distribution of copyrighted content. Please ensure that you comply with all applicable laws and respect the intellectual property rights of content creators.
-
Ensure you have Python installed on your system.
-
Open a terminal or command prompt.
-
Navigate to the directory where the
script.py
file is located. -
Execute the script using the following command:
python script.py <path_to_folder>
Replace
<path_to_folder>
with the actual path to the folder containing the videos and subtitles.
- Python 3.x
-
Ensure you have Python installed on your system. If not, you can download it from the Python website.
-
Download the
script.py
file to your local machine. -
Open a terminal or command prompt.
-
Navigate to the directory where the
script.py
file is located. -
The script has no additional dependencies, so no installation of external libraries is required.
To execute the script.py
script, follow these steps:
-
Open a terminal or command prompt.
-
Navigate to the directory where the
script.py
file is located. -
Execute the script using the following command:
python script.py <path_to_folder>
Replace
<path_to_folder>
with the actual path to the folder containing the videos and subtitles. -
The script will search for video files with the supported extensions (
".mkv"
,".mp4"
,".avi"
,".mov"
) in the specified folder and its subfolders. -
For each video file found, the script will search for the corresponding subtitle file in the "Subs" folder within the video's folder. It will check if the subtitle file has the desired language specified (currently set as "English").
-
If a matching subtitle file is found, the script will copy it to the parent folder and rename it to match the video file's name.
-
The script will display a message for each successful copy operation.
Contributions are welcome! If you encounter any issues, have suggestions for improvements, or would like to contribute new features, please follow these steps:
-
Fork the repository.
-
Create a new branch for your contribution.
-
Make the necessary changes and commit them.
-
Push your changes to
your forked repository.
- Submit a pull request to the original repository, describing the changes you have made.
The script is licensed under the MIT License. You are free to modify, distribute, and use the script in both personal and commercial projects. However, please ensure that you comply with all applicable laws and use the script responsibly and ethically.