This repository has been archived by the owner on May 24, 2024. It is now read-only.
generated from fearocanity/ebtrfio-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.conf
87 lines (71 loc) · 3.35 KB
/
config.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/bin/bash
# * Fill the Required Variables
season="1"
episode="01"
total_frame="2900" # total frames cutted
img_fps="2" # the fps of the cutted frames
page_name="Yet Another Azumanga Daioh Frame In Order" # (must be exact) this is used for checking if the token is valid
# message/caption formatting (supports emoji/hashtags)
# available variables are:
# {season}: (shows the current season)
# {episode}: (shows the current episode)
# {total_frames}: (shows the total frame)
# {message_craft}: (subtitle in raw text)
# {frame_timestamp}: (approximate timestamp of current frame)
# {\n}: (new-line character)
#
# Note: frame_timestamp only needed `img_fps` variable message_craft needs the subtitle
message='Season {season}, Episode {episode}, Frame {prev_frame} out of {total_frame}'
# page bio formatting (supports emoji | 101 char limit)
# available variables are:
# {img_fps}: (shows the fps of the cutted frames)
# {fph}: (shows the rate of posting)
# {ovr_all}: (total count of frames posted)
# {get_interval}: (get the interval on cron)
# {\n}: (new-line character)
abt_txt='Chopped {img_fps} FPS, Posting {fph} Frames every {get_interval} hours.{\n}Total of "{ovr_all}" frame was successfully posted!!'
# This filename must be exact at the subtitle file on fb directory, We don't use glob/filename-wildcards to avoid matching multiple files
# However, you can select multiple files by giving it's full filename (multilingual_subs variable must be enabled)
# filename format: xxxx_en.srt
# ^ ^ ^--- (srt, ass, ssa format)
# | '------ (country code | 2 chrs)
# ------------ (any name)
# (delimited by ":" or "|" or ",")
subtitle_file="subtitle_en.ass:subtitle_jp.ass"
# Enabling/Disabling Addons (0: Disabled, 1: Enabled)
sub_posting="0"
rand_post="0"
gif_post="0"
desc_update="1"
multilingual_subs="0"
# Optional
giphy_tags="anime" # Insert your custom Tags here. Delimited by ","
gif_prev_framecount="10"
# This is where you will paste the manually created Album ID, (When nothing is provided, it will not collect the photo posted in an Album)
album=""
# Number frames that will be posted after the execution (Default is 15)
fph="15"
# Minutes interval of posting (Default is 2)
# Note: Don't set it lower than a minute, you might get detected as a spam of Facebook. and Setting it Higher will cause duplication of posting.
mins="2"
# Delay of the Each action (in seconds), (Default is 3)
delay_action="3"
# Tweaks, Adjust the offset if the subtitle we're a little bit off, you can adjust this. (Default: 0)
frm_delay="0"
# Crop Range Dimentions (Default: {rcrop_x=200}, {rcrop_y=600})
# Note: The value must be below of your frame resolution.
rcrop_x="200"
rcrop_y="600"
# Facebook API version level (in case of deprecation, you can easily adjust this)
FRMENV_FBAPI_VER="v18.0"
# timezone (defaults to UTC, if unset)
FRMENV_SYS_TIMEZONE="Asia/Tokyo"
# env variables
FRMENV_API_ORIGIN="https://graph.facebook.com"
FRMENV_GIFAPI_ORIGIN="https://upload.giphy.com"
FRMENV_FRAME_LOCATION=./frames
FRMENV_LOG_FILE=./fb/log.txt
FRMENV_GIF_LOCATION=./fb/tmp.gif
FRMENV_RC_LOCATION=./fb/tmprc.jpg
eval "FRMENV_SUBS_FILE=($(sed -E 's_(\||,|:)_ _g;;s_([^[:blank:]]*)_./fb/\1_g' <<< "${subtitle_file}"))"
FRMENV_ITER_FILE=./fb/frameiterator