fix mobile redirect
This commit is contained in:
@ -11,13 +11,14 @@ def parse_args():
|
||||
parser.add_argument('--spotify_client_id', type=str, required=True, help='Spotify Client ID')
|
||||
parser.add_argument('--spotify_client_secret', type=str, required=True, help='Spotify Client Secret')
|
||||
parser.add_argument('--port', type=int, default=5006, help='Port to run the Panel app on')
|
||||
parser.add_argument('--root_url', type=str, default=None, help='Root URL for the Panel app (optional)')
|
||||
return parser.parse_args()
|
||||
|
||||
def panel_main():
|
||||
args = parse_args()
|
||||
hipsterfy = Hipsterfy(args.spotify_client_id, args.spotify_client_secret)
|
||||
playlist_uri = 'https://open.spotify.com/playlist/5grJs3PKyLE0cL5NYmkGIF'
|
||||
app = lambda: create_panel_page(hipsterfy, playlist_uri)
|
||||
app = lambda: create_panel_page(hipsterfy, playlist_uri, args.root_url)
|
||||
|
||||
static_dir = os.path.join(os.path.dirname(__file__), "static")
|
||||
pn.serve(
|
||||
|
Reference in New Issue
Block a user