changes default channel name, changes playlist folder structure to not use day folders
This commit is contained in:
		| @ -9,7 +9,8 @@ import subprocess | ||||
| # globals | ||||
| mediadir = "/var/lib/ffplayout/tv-media" | ||||
| playlistdir = "/var/lib/ffplayout/playlists" | ||||
| channel = "newellijaytelevision" | ||||
| channel = "channelx3eal6" | ||||
| #channel = "newellijaytelevision" | ||||
| verbose = False | ||||
| from_date = datetime.date.today() + datetime.timedelta(days=1) # tomorrow by default | ||||
| to_date = datetime.date.today() + datetime.timedelta(days=1)   # tomorrow by default | ||||
| @ -24,7 +25,7 @@ def main(): | ||||
|             print("Processing date", single_date) | ||||
|         daylist = build_day(single_date) | ||||
|  | ||||
|         daylist_path = playlistdir + "/" + channel + "/" + single_date.strftime("%Y") + "/" + single_date.strftime("%m") + "/" + single_date.strftime("%d") + "/" | ||||
|         daylist_path = playlistdir + "/" + channel + "/" + single_date.strftime("%Y") + "/" + single_date.strftime("%m") + "/" | ||||
|         if not os.path.isdir(daylist_path): | ||||
|             os.makedirs(daylist_path) | ||||
|         daylist_file = single_date.strftime("%Y") + "-" + single_date.strftime("%m") + "-" + single_date.strftime("%d") + ".json" | ||||
|  | ||||
		Reference in New Issue
	
	Block a user