Quantcast
Channel: uncategorized - Forum - FlexGet
Viewing all articles
Browse latest Browse all 376

Podcast Renaming: If/then help!

$
0
0

@bmilcs wrote:

How can I code this properly?

I want to rename any podcast with "Thursday" in the title to Date TMP.
I want to rename any podcast with "Monday" in the title to Date MMP.

How do I successfully apply an if/then statement to execute this? I tried something like this, but of course it didn't work. I am not a programmer :stuck_out_tongue:

Thanks!

web_server:
  bind: 0.0.0.0
  port: 3539
  web_ui: yes

templates:

    podcast:
        accept_all: yes
        pathscrub: windows
        limit_new: 1

tasks:

  MMP:
    template: podcast
    rss: http://billburr.libsyn.com/rss/
    download: /mnt/user/podcasts/Monday_Morning_Podcast/
    if:
    - "'Monday' in {{ title }}"
        set:
        filename: "{{ rss_pubdate | formatdate('%Y-%m-%d') }} -  MMP.mp3"
    - "'Thursday' in {{ title }}"
        set:
        filename: "{{ rss_pubdate | formatdate('%Y-%m-%d') }} -  MMP.mp3"

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 376

Trending Articles