From dd55b697661a1f15dbb5126bbf393e9e160e77eb Mon Sep 17 00:00:00 2001 From: Eugene Amos Date: Wed, 9 Aug 2023 13:29:23 -0700 Subject: [PATCH] adding list feature to podfetch.service --- podfetch/README.md | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/podfetch/README.md b/podfetch/README.md index 11b8e0e..0c127c8 100644 --- a/podfetch/README.md +++ b/podfetch/README.md @@ -1,15 +1,18 @@ -
-
+

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 watchdog +
+
+

# 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 **watchdog** - -
-
+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 **watchdog**
Table of Contents @@ -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. +
+ podfetch.service + ```ini [Unit] Description=Podcast Folder Monitor Service @@ -171,6 +177,8 @@ User=[username] WantedBy=multi-user.target ``` +
+ > **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) \ No newline at end of file +[🔼 Back to top](#top) \ No newline at end of file