from index import app
from flask import render_template, request
from config import BASE_URL
from query import get_callout, get_billboard

SHEET_ID = 'tzE2PsqJoWRpENlMr-ZlS8A'
#SHEET_ID = 'tIk5itVcfOHUmakkmpjCcxw'  # Demo sheet


#@app.route('/')
#def index():
#    page_url = BASE_URL + request.path
#    page_title = 'Audio Player'
#    stream_name = "My Place"
#
#    social = {
#        'title': "VPR Audio Player",
#        'subtitle': "",
#        'img': "static/img/logo/vpr-logo-share.jpg",
#        'description': "Listen to the live streams of VPR News, VPR Classical, the BBC, Jazz24 and My Place.",
#        'twitter_text': "News, Classical, the BBC and more. The VPR Audio Player:",
#        'twitter_hashtag': ""
#    }
#
#    return render_template('content.html',
#        page_title=page_title,
#        social=social,
#        stream_name=stream_name,
#        page_url=page_url)
#

@app.route('/billboard')
def billboard():
    billboard = get_billboard(SHEET_ID)

    return render_template('billboard.html', billboard=billboard)


@app.route('/callout')
def callout():
    callout = get_callout(SHEET_ID)

    return render_template('callout.html', callout=callout)

from index import app
from flask import render_template, request
from config import BASE_URL
from query import get_callout, get_billboard

SHEET_ID = 'tzE2PsqJoWRpENlMr-ZlS8A'
#SHEET_ID = 'tIk5itVcfOHUmakkmpjCcxw'  # Demo sheet


@app.route('/')
def index():
    page_url = BASE_URL + request.path
    page_title = 'Audio Player'
    stream_name = "Replay"

    social = {
        'title': "VPR Audio Player",
        'subtitle': "",
        'img': "static/img/logo/vpr-logo-share.jpg",
        'description': "Listen to the live streams of VPR News, VPR Classical, the BBC, Jazz24 and My Place.",
        'twitter_text': "News, Classical, the BBC and more. The VPR Audio Player:",
        'twitter_hashtag': ""
    }

    return render_template('content.html',
        page_title=page_title,
        social=social,
        stream_name=stream_name,
        page_url=page_url)


@app.route('/billboard')
def billboard():
    billboard = get_billboard(SHEET_ID)

    return render_template('billboard.html', billboard=billboard)


@app.route('/callout')
def callout():
    callout = get_callout(SHEET_ID)

    return render_template('callout.html', callout=callout)

Update stream name to Replay
Update stream name to Replay

  from index import app
  from flask import render_template, request
  from config import BASE_URL
  from query import get_callout, get_billboard
  
  SHEET_ID = 'tzE2PsqJoWRpENlMr-ZlS8A'
  #SHEET_ID = 'tIk5itVcfOHUmakkmpjCcxw'  # Demo sheet
  
  
- #@app.route('/')
+ @app.route('/')
- #def index():
+ def index():
- #    page_url = BASE_URL + request.path
+     page_url = BASE_URL + request.path
- #    page_title = 'Audio Player'
+     page_title = 'Audio Player'
- #    stream_name = "My Place"
+     stream_name = "Replay"
- #
+ 
- #    social = {
+     social = {
- #        'title': "VPR Audio Player",
+         'title': "VPR Audio Player",
- #        'subtitle': "",
+         'subtitle': "",
- #        'img': "static/img/logo/vpr-logo-share.jpg",
+         'img': "static/img/logo/vpr-logo-share.jpg",
- #        'description': "Listen to the live streams of VPR News, VPR Classical, the BBC, Jazz24 and My Place.",
+         'description': "Listen to the live streams of VPR News, VPR Classical, the BBC, Jazz24 and My Place.",
- #        'twitter_text': "News, Classical, the BBC and more. The VPR Audio Player:",
+         'twitter_text': "News, Classical, the BBC and more. The VPR Audio Player:",
- #        'twitter_hashtag': ""
+         'twitter_hashtag': ""
- #    }
+     }
- #
+ 
- #    return render_template('content.html',
+     return render_template('content.html',
- #        page_title=page_title,
+         page_title=page_title,
- #        social=social,
+         social=social,
- #        stream_name=stream_name,
+         stream_name=stream_name,
- #        page_url=page_url)
+         page_url=page_url)
- #
+ 
  
  @app.route('/billboard')
  def billboard():
      billboard = get_billboard(SHEET_ID)
  
      return render_template('billboard.html', billboard=billboard)
  
  
  @app.route('/callout')
  def callout():
      callout = get_callout(SHEET_ID)
  
      return render_template('callout.html', callout=callout)
  
Update stream name to Replay
## Code Before:
from index import app
from flask import render_template, request
from config import BASE_URL
from query import get_callout, get_billboard

SHEET_ID = 'tzE2PsqJoWRpENlMr-ZlS8A'
#SHEET_ID = 'tIk5itVcfOHUmakkmpjCcxw'  # Demo sheet


#@app.route('/')
#def index():
#    page_url = BASE_URL + request.path
#    page_title = 'Audio Player'
#    stream_name = "My Place"
#
#    social = {
#        'title': "VPR Audio Player",
#        'subtitle': "",
#        'img': "static/img/logo/vpr-logo-share.jpg",
#        'description': "Listen to the live streams of VPR News, VPR Classical, the BBC, Jazz24 and My Place.",
#        'twitter_text': "News, Classical, the BBC and more. The VPR Audio Player:",
#        'twitter_hashtag': ""
#    }
#
#    return render_template('content.html',
#        page_title=page_title,
#        social=social,
#        stream_name=stream_name,
#        page_url=page_url)
#

@app.route('/billboard')
def billboard():
    billboard = get_billboard(SHEET_ID)

    return render_template('billboard.html', billboard=billboard)


@app.route('/callout')
def callout():
    callout = get_callout(SHEET_ID)

    return render_template('callout.html', callout=callout)

## Instruction:
Update stream name to Replay
## Code After:
from index import app
from flask import render_template, request
from config import BASE_URL
from query import get_callout, get_billboard

SHEET_ID = 'tzE2PsqJoWRpENlMr-ZlS8A'
#SHEET_ID = 'tIk5itVcfOHUmakkmpjCcxw'  # Demo sheet


@app.route('/')
def index():
    page_url = BASE_URL + request.path
    page_title = 'Audio Player'
    stream_name = "Replay"

    social = {
        'title': "VPR Audio Player",
        'subtitle': "",
        'img': "static/img/logo/vpr-logo-share.jpg",
        'description': "Listen to the live streams of VPR News, VPR Classical, the BBC, Jazz24 and My Place.",
        'twitter_text': "News, Classical, the BBC and more. The VPR Audio Player:",
        'twitter_hashtag': ""
    }

    return render_template('content.html',
        page_title=page_title,
        social=social,
        stream_name=stream_name,
        page_url=page_url)


@app.route('/billboard')
def billboard():
    billboard = get_billboard(SHEET_ID)

    return render_template('billboard.html', billboard=billboard)


@app.route('/callout')
def callout():
    callout = get_callout(SHEET_ID)

    return render_template('callout.html', callout=callout)
