adding list feature to podfetch.service
This commit is contained in:
parent
40f1b0d622
commit
dd55b69766
@ -1,15 +1,18 @@
|
|||||||
|
|
||||||
<br />
|
<h1 align="center">PodFetch Folder Monitor</h1>
|
||||||
<br />
|
|
||||||
|
<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
|
# 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 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>**
|
||||||
### This script uses Python and a library in Python called **<a href="https://pypi.org/project/watchdog/" target="_blank">watchdog</a>**
|
|
||||||
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
|
|
||||||
<details open>
|
<details open>
|
||||||
<summary>Table of Contents</summary>
|
<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`
|
When done it should look like this: `/home/[username]/scripts`
|
||||||
|
|
||||||
[🔼 Back to top](#podfetch-folder-monitor)
|
[🔼 Back to top](#top)
|
||||||
|
|
||||||
## 03. Script
|
## 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.
|
* Check the `Execute` box to allow executing the file as a program.
|
||||||
* Close out the window.
|
* Close out the window.
|
||||||
|
|
||||||
[🔼 Back to top](#podfetch-folder-monitor)
|
[🔼 Back to top](#top)
|
||||||
|
|
||||||
## 04. Run
|
## 04. Run
|
||||||
|
|
||||||
@ -131,7 +134,7 @@ You should now see the blinking curser in the terminal indicating that the scrip
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
[🔼 Back to top](#podfetch-folder-monitor)
|
[🔼 Back to top](#top)
|
||||||
|
|
||||||
## 05. Testing
|
## 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.
|
If everything worked out okay we can move to the next step.
|
||||||
|
|
||||||
[🔼 Back to top](#podfetch-folder-monitor)
|
[🔼 Back to top](#top)
|
||||||
|
|
||||||
## 06. Automation
|
## 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`
|
* Create a new file called `podfetch.service`
|
||||||
* Use this code inside the `podfetch.service` file.
|
* Use this code inside the `podfetch.service` file.
|
||||||
|
|
||||||
|
<details open>
|
||||||
|
<summary>podfetch.service</summary>
|
||||||
|
|
||||||
```ini
|
```ini
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Podcast Folder Monitor Service
|
Description=Podcast Folder Monitor Service
|
||||||
@ -171,6 +177,8 @@ User=[username]
|
|||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
```
|
```
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
> **Note:** Make sure you change `[username]` with your own..
|
> **Note:** Make sure you change `[username]` with your own..
|
||||||
|
|
||||||
Now we need to enable the service file.
|
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
|
### Congratulation your service is auto-running and listing for new podcast folders
|
||||||
|
|
||||||
[🔼 Back to top](#podfetch-folder-monitor)
|
[🔼 Back to top](#top)
|
Loading…
x
Reference in New Issue
Block a user