genRSS icon indicating copy to clipboard operation
genRSS copied to clipboard

FR: Specify a leading path

Open Jwink3101 opened this issue 1 year ago • 2 comments

Right now, if I run it with something like:

genRSS -d /a/long/path/to/my/directory/

I get items like:

      <item>
         <guid>http://localhost:8080//a/long/path/to/my/directory/file1.mp3</guid>
         <link>http://localhost:8080//a/long/path/to/my/directory/file1.mp3</link>
         <title>file1</title>
         <description>file1</description>
         <pubDate>Fri, 29 Mar 2024 22:45:08 +0000</pubDate>
         <enclosure url="http://localhost:8080//a/long/path/to/my/directory/file1.mp3" type="audio/mpeg" length="79127804"/>
         <itunes:duration>3955</itunes:duration>
      </item>

This is as it says on the tin but if I want to use a different path to publish this, I now need to find/replace all "/a/long/path/to/my/directory/" to the desired actual path.

Being able to specify the leading path would be helpful.

Jwink3101 avatar Apr 05 '24 22:04 Jwink3101

Hello, We keep this open for implementation. For now, if you're on a Linux-like system, you can use the following command to quickly replace the path:

sed -i 's@/a/long/path/to/my/directory/@/actual/path/on/host/@g' feed.rss

amsehili avatar Apr 08 '24 08:04 amsehili