adding list feature to podfetch.service

This commit is contained in:
Eugene Amos 2023-08-09 13:29:23 -07:00
parent 40f1b0d622
commit dd55b69766

View File

@ -1,15 +1,18 @@
<br />
<br />
<h1 align="center">PodFetch Folder Monitor</h1>
<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>
# PodFetch Folder Monitor
### 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.
### This script uses Python and a library in Python called **<a href="https://pypi.org/project/watchdog/" target="_blank">watchdog</a>**
<br />
<br />
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.
This script uses Python and a library in Python called **<a href="https://pypi.org/project/watchdog/" target="_blank">watchdog</a>**
<details open>
<summary>Table of Contents</summary>
@ -47,7 +50,7 @@ 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`
[🔼 Back to top](#podfetch-folder-monitor)
[🔼 Back to top](#top)
## 03. Script
@ -111,7 +114,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.
[🔼 Back to top](#podfetch-folder-monitor)
[🔼 Back to top](#top)
## 04. Run
@ -131,7 +134,7 @@ You should now see the blinking curser in the terminal indicating that the scrip
![testing](img/running_podcast.png)
[🔼 Back to top](#podfetch-folder-monitor)
[🔼 Back to top](#top)
## 05. Testing
@ -141,7 +144,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.
[🔼 Back to top](#podfetch-folder-monitor)
[🔼 Back to top](#top)
## 06. Automation
@ -154,6 +157,9 @@ To get started we need to crate a new file in the systemd location.
* Create a new file called `podfetch.service`
* Use this code inside the `podfetch.service` file.
<details open>
<summary>podfetch.service</summary>
```ini
[Unit]
Description=Podcast Folder Monitor Service
@ -171,6 +177,8 @@ User=[username]
WantedBy=multi-user.target
```
</details>
> **Note:** Make sure you change `[username]` with your own..
Now we need to enable the service file.
@ -191,4 +199,4 @@ sudo systemctl status podfetch
### Congratulation your service is auto-running and listing for new podcast folders
[🔼 Back to top](#podfetch-folder-monitor)
[🔼 Back to top](#top)