Shop Bee Folks for your Honey!Shop Bee Folks for your Honey!
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 1996
    Location
    Youngsville, NC
    Posts
    1,617

    Default 5-22-18 - Adam Thompson and Machination Mead Works - going pro

    5-21-18 We're back! Tonight we're talking with Adam Thompson, owner of Machination Meadworks in Loveland, Colorado. Adam envisioned Machination Mead Works in 2013 and began the long path to starting his own meadery. Now with over a decade of brewing experience and a few dozen medals, including five Mazer Cups, he is ready to share his mead with the world. It has been a long uphill fight but his time in the Army’s 3rd Ranger Battalion (Thank you for your service!! [ 418 more words ]
    http://ow.ly/IQVV30k8hQy

    join us on the live chat!!
    https://join.slack.com/t/gotmeadlive...jliMDU3ZmQyYTQ
    Wassail!

    Vicky Rowe
    Owner & Webmistress, Gotmead.com
    Executive Director, American Mead Makers Association
    http://www.mead-makers.org
    Making Mead since 1995

  2. #2
    Join Date
    Mar 2018
    Location
    Romania
    Posts
    101

    Default

    the RSS feed seems to have failed fail to update, do you need to do it manually? http://gotmead.com/blog/feed/podcast/

  3. #3
    Join Date
    Apr 1996
    Location
    Youngsville, NC
    Posts
    1,617

    Default

    No, I have to fix the file, we had a glitch and I have to re-record some of it. Sorry, been swamped.
    Wassail!

    Vicky Rowe
    Owner & Webmistress, Gotmead.com
    Executive Director, American Mead Makers Association
    http://www.mead-makers.org
    Making Mead since 1995

  4. #4

    Default Early episodes missing from RSS

    @webmaster Did you know the early episodes aren't in the RSS file? You can generate a new one with a script like this, but it requires each spreaker page (for each episode) to already be downloaded and in a folder like pages/001/gotmead-live-episode-1-schramms-mead-ken and pages/002/gotmead-live-episode-2-b-nektar-brad-ker

    Code:
    #!/usr/bin/python
    
    from datetime import datetime
    from typing import List
    import sys
    import os
    import subprocess
    from string import Template
    
    header='''
    <?xml version="1.0" encoding="UTF-8"?>
    <rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
     
      <channel>
      <title>GotMead generated archive</title>
      <language>en-us</language>
      <lastBuildDate>Sat, 25 Mar 2006 11:30:00 -0500</lastBuildDate>
        <pubDate>Sat, 25 Mar 2006 11:30:00 -0500</pubDate>
        '''
    item = Template('''<item>
    <title>$title</title>
    <guid>$mp3</guid>
    <description>$description</description>
    <enclosure url="$mp3" type="audio/mpeg"/>
    <!--<enclosure url="XXXXXX" length="11779397" type="audio/mpeg"/>-->
    <category>Podcasts</category>
    <pubDate>$date</pubDate>
    </item>
    ''')
    
    footer='''
    </channel>
    
    </rss>'''
    
    command: str = """grep -oE 'https://api\.spreaker\.com/download/episode/[^"]+' --no-filename pages/*/*"""
    mp3s: List[str] = subprocess.check_output([command], shell=True).decode().splitlines()
    command: str = """grep -oE '<meta property="og:title" content="[^"]+' --no-filename pages/*/* | sed 's/.*"//'"""
    titles: List[str] = subprocess.check_output([command], shell=True).decode().splitlines()
    command: str = """grep -oE '<meta property="og:description" content="[^"]+' --no-filename pages/*/* | sed 's/.*"//'"""
    descriptions: List[str] = subprocess.check_output([command], shell=True).decode().splitlines()
    command: str = """grep -m 1 -oE 'timestamp="[^"]+' --no-filename pages/*/* | sed 's/.*"//'"""
    timestamps: List[str] = subprocess.check_output([command], shell=True).decode().splitlines()
    command: str = """grep -oE 'class="track_player_time_total">[0-9]+:[0-9]+' --no-filename pages/*/* | sed 's/.*>//'"""
    durations: List[str] = subprocess.check_output([command], shell=True).decode().splitlines()
    
    print(header);
    
    for i in range(len(titles)):
        # Skip this URL if it is coming again on a later page:
        # (This doesn't actually seem to help.)
        if (mp3s[i] in mp3s[i+1:]):
            pass
        try:
            date = datetime.fromtimestamp(int(timestamps[i])) # if the timestamp is a unix timestamp
        except ValueError: # if it's an iso date
            date = datetime.fromisoformat(timestamps[i])
    
        # Sat, 25 Mar 2006 11:30:00 -0500
        dateStr: str = date.strftime('%a, %d %b %Y %X %z')
        print(item.substitute(title=titles[i], description=descriptions[i], mp3=mp3s[i], date=dateStr));
    
    print(footer);

Similar Threads

  1. Food & Mead; What works?
    By Meadmage999 in forum The Hive
    Replies: 11
    Last Post: 05-22-2005, 12:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •