This commit is contained in:
Eugene Amos 2023-08-09 13:19:02 -07:00
parent d2eec0ae8d
commit 0d254fab7a

View File

@ -1,19 +1,15 @@
<a name="readme-top"></a>
<h1 align="center">PodFetch Folder Monitor</h1>
### This will monitor a folder and when a new file is created. It will change the .mp3 name to the name of the parent folder.
<p align="center">
This will monitor a folder and when a new file is created. It will change the .mp3 name to the name of the parent folder.
<br />
This script uses Python and a library in Python called <strong><a href="https://pypi.org/project/watchdog/" target="_blank">watchdog</a></strong>
<br />
<br />
</p>
## Table of Contents
[01. PIP](#01-pip) <br>
[02. Folder Structure](#02-folder-structure) <br>
[03. Script](#03-script) <br>
[04. Run](#04-run) <br>
[05. Testing](#05-testing) <br>
[06. Automation](#06-automation) <br>
<details>
<details open>
<summary>Table of Contents</summary>
<ol>
<li><a href="#01-pip">PIP</a></li>
@ -49,10 +45,13 @@ Create a new folder called **scripts** in your home folder. This is where all yo
When done it should look like this: `/home/[username]/scripts`
<p align="right">(<a href="#readme-top">back to top</a>)</p>
[🔼 Back to top](#top)
## 03. Script
<details>
<summary>podcast_folder_monitor.py</summary>
```python
#!/usr/bin/python3
@ -110,7 +109,7 @@ Save this script as `podcast_folder_monitor.py` in the scripts folder. Next we n
* Check the `Execute` box to allow executing the file as a program.
* Close out the window.
<p align="right">(<a href="#readme-top">back to top</a>)</p>
[🔼 Back to top](#top)
## 04. Run
@ -130,7 +129,7 @@ You should now see the blinking curser in the terminal indicating that the scrip
![testing](img/running_podcast.png)
<p align="right">(<a href="#readme-top">back to top</a>)</p>
[🔼 Back to top](#top)
## 05. Testing
@ -140,7 +139,7 @@ To test the script copy and paste one of your podcast folder that includes the p
If everything worked out okay we can move to the next step.
<p align="right">(<a href="#readme-top">back to top</a>)</p>
[🔼 Back to top](#top)
## 06. Automation
@ -190,6 +189,4 @@ sudo systemctl status podfetch
### Congratulation your service is auto-running and listing for new podcast folders
<a class="top-link hide" href="#top"></a>
<p align="right">(<a href="#readme-top">back to top </a>)</p>
[🔼 Back to top](#top)