-
Notifications
You must be signed in to change notification settings - Fork 0
/
globals.h
32 lines (25 loc) · 720 Bytes
/
globals.h
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
#pragma once
#include <string>
#include <vector>
#include <set>
#define PROGRESS_WIDTH 40
#define PING_INTERVAL 30
static bool s_running = true;
static bool s_verbose = false;
static bool s_adblock = false;
static bool s_youtube = false;
struct Segment {
double begin = 0.;
double end = 0.;
};
static std::vector<Segment> currentSegments;
static double nextSegmentStart = -1.;
static std::string currentVideo;
static double s_currentPosition = -1.;
static double currentDuration = -1.;
static double s_lastPositionFetched = -1;
static bool currentlyPlaying = false;
static time_t s_lastSeek = 0;
static time_t s_lastPing = 0;
static std::string s_currentStatus;
static std::set<std::string> s_categories;