Skip to content

Commit 49d60cb

Browse files
Merge pull request #3 from declan-fitzpatrick/dev
remove local server url
2 parents ea0dc91 + 63708b0 commit 49d60cb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+42453
-6
lines changed

README.md

Lines changed: 0 additions & 1 deletion

api/0.0.2/entries.json

Lines changed: 2242 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/parsed/ar

Lines changed: 642 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/parsed/ca

Lines changed: 642 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/parsed/cs

Lines changed: 642 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/parsed/da

Lines changed: 642 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/parsed/de

Lines changed: 642 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/parsed/el

Lines changed: 642 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/parsed/en

Lines changed: 642 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/parsed/en_AU

Lines changed: 642 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/parsed/en_GB

Lines changed: 642 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/parsed/es

Lines changed: 642 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/parsed/es_419

Lines changed: 642 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/parsed/fi

Lines changed: 642 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/parsed/fr

Lines changed: 642 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/parsed/fr_CA

Lines changed: 642 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/parsed/he

Lines changed: 642 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/parsed/hi

Lines changed: 642 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/parsed/hr

Lines changed: 642 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/parsed/hu

Lines changed: 642 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/parsed/id

Lines changed: 642 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/parsed/it

Lines changed: 642 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/parsed/ja

Lines changed: 642 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/parsed/ko

Lines changed: 642 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/parsed/ms

Lines changed: 642 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/parsed/nl

Lines changed: 642 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/parsed/no

Lines changed: 642 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/parsed/pl

Lines changed: 642 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/parsed/pt_BR

Lines changed: 642 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/parsed/pt_PT

Lines changed: 642 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/parsed/ro

Lines changed: 642 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/parsed/ru

Lines changed: 642 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/parsed/sk

Lines changed: 642 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/parsed/sv

Lines changed: 642 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/parsed/th

Lines changed: 642 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/parsed/tr

Lines changed: 642 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/parsed/uk

Lines changed: 642 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/parsed/vi

Lines changed: 642 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/parsed/zh_CN

Lines changed: 642 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/parsed/zh_HK

Lines changed: 642 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/parsed/zh_TW

Lines changed: 642 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/raw/ar

Lines changed: 384 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/raw/ca

Lines changed: 384 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/raw/cs

Lines changed: 384 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/raw/da

Lines changed: 384 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/raw/de

Lines changed: 384 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/raw/el

Lines changed: 384 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/raw/en

Lines changed: 384 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/raw/en_AU

Lines changed: 384 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/raw/en_GB

Lines changed: 384 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/raw/es

Lines changed: 384 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/raw/es_419

Lines changed: 384 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/raw/fi

Lines changed: 384 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/raw/fr

Lines changed: 384 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/raw/fr_CA

Lines changed: 384 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/raw/he

Lines changed: 384 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/raw/hi

Lines changed: 384 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/raw/hr

Lines changed: 384 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/raw/hu

Lines changed: 384 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/raw/id

Lines changed: 384 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/raw/it

Lines changed: 384 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/raw/ja

Lines changed: 384 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/raw/ko

Lines changed: 384 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/raw/ms

Lines changed: 384 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/raw/nl

Lines changed: 384 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/raw/no

Lines changed: 384 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/raw/pl

Lines changed: 384 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/raw/pt_BR

Lines changed: 384 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/raw/pt_PT

Lines changed: 384 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/raw/ro

Lines changed: 384 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/raw/ru

Lines changed: 384 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/raw/sk

Lines changed: 384 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/raw/sv

Lines changed: 384 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/raw/th

Lines changed: 384 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/raw/tr

Lines changed: 384 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/raw/uk

Lines changed: 384 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/raw/vi

Lines changed: 384 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/raw/zh_CN

Lines changed: 384 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/raw/zh_HK

Lines changed: 384 additions & 0 deletions
Large diffs are not rendered by default.

api/0.0.2/raw/zh_TW

Lines changed: 384 additions & 0 deletions
Large diffs are not rendered by default.

docker-compose.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: '3'
2+
services:
3+
aerials:
4+
image: flashspys/nginx-static
5+
container_name: aerials
6+
ports:
7+
- 8080:80
8+
volumes:
9+
- ./downloads:/static/downloads
10+
- ./api:/static/api
11+
- ./index.html:/static/index.html
12+
- ./style.css:/static/style.css

downloadAerials.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525

2626
TVOS_VERSION = 16
2727
if 'TVOS_VERSION' in os.environ: TVOS_VERSION = os.environ['TVOS_VERSION']
28-
LOCAL_SERVER_URL = ""
29-
if 'LOCAL_SERVER_URL' in os.environ: LOCAL_SERVER_URL = os.environ['LOCAL_SERVER_URL']
3028
VIDEO_QUALITY = "url-1080-H264"
3129
if 'VIDEO_QUALITY' in os.environ: VIDEO_QUALITY = os.environ['VIDEO_QUALITY']
3230
if VIDEO_QUALITY == "url-1080-H264":
@@ -37,7 +35,7 @@
3735
BW_LIMIT = False
3836
if 'BW_LIMIT' in os.environ: BW_LIMIT = True
3937

40-
RELEASE_VERSION = "0.0.1"
38+
RELEASE_VERSION = "0.0.2"
4139

4240
def upload_strings(file):
4341
password=""
@@ -154,8 +152,7 @@ def download_aerials():
154152
for index, asset in enumerate(entries['assets']):
155153
filename = asset[VIDEO_QUALITY].replace(APPLE_SERVER_URL, "")
156154
url = asset[VIDEO_QUALITY]
157-
if LOCAL_SERVER_URL != "":
158-
entries['assets'][index][f"{VIDEO_QUALITY}-local"] = f'{LOCAL_SERVER_URL}/{filename}'
155+
entries['assets'][index][f"filename"] = f'{filename}'
159156
try:
160157
if not SKIP_DOWNLOADS:
161158
print(f"{index+1}/{len(entries['assets'])} Downloading {filename}")

index.html

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
6+
<meta name="description" content="">
7+
<meta name="author" content="">
8+
<link rel="icon" href="/docs/4.0/assets/img/favicons/favicon.ico">
9+
10+
<title>aerials downloader</title>
11+
12+
<!-- Bootstrap core CSS -->
13+
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
14+
<!-- Custom styles for this template -->
15+
<link href="style.css" rel="stylesheet">
16+
</head>
17+
18+
<body class="text-left">
19+
<div class="cover-container d-flex h-100 p-3 mx-auto flex-column">
20+
<header class="masthead mb-auto">
21+
<div class="inner">
22+
<h3 class="masthead-brand"><a href="https://github.com/declan-fitzpatrick/aerials">aerials downloader</a> </h3>
23+
</div>
24+
</header>
25+
26+
<main role="main" class="inner cover">
27+
<h3>What is this?</h3>
28+
This project hosts the api and local downloadable files in a docker container. It is also hosted on GitHub Pages because why not?
29+
30+
Clone the whole project for the full file downloader (downloads are not hosted here).
31+
<br>
32+
33+
<h3>tl;dr</h3>
34+
<a href="https://declan-fitzpatrick.github.io/aerials/api/0.0.2/raw/en_GB">Raw GB localised file</a>
35+
<br>
36+
<a href="https://declan-fitzpatrick.github.io/aerials/api/0.0.2/parsed/en_GB">Parsed GB localised file</a>
37+
<br>
38+
<a href="https://declan-fitzpatrick.github.io/aerials/api/0.0.2/entries.json">Entries.json file</a>
39+
<br>
40+
41+
42+
43+
<h3>Langs</h3>
44+
The public api is under the api/ folder and hosts two folders, which contain the localised points of interest files. The languages available are:
45+
<br>
46+
ar, ca, cs, da, de, el, en, en_AU, en_GB, es, es_419, fi, fr, fr_CA, he, hi, hr, hu, id, it, ja, ko, ms, nl, no, pl, pt, pt_BR, pr_PT, ro, ru, sk, sv, th, tr, uk, vi, zh_CN, zh_HK, zh_TW
47+
<br>
48+
poi lang files are available on GitHub and locally if this is running in a docker container. urls take the form of:
49+
<br>
50+
https://declan-fitzpatrick.github.io/aerials/api/{version}/{raw|parsed}/{lang}
51+
<br>
52+
or:
53+
{your.domain.name:port}/aerials/api/{version}/{raw|parsed}/{lang}
54+
<h3>Videos</h3>
55+
videos are not stored in git and should be downloaded. Url will have the form of below where the filename is in entries.json['filename'] as of v0.0.2
56+
<br>
57+
{your.domain.name:port}/downloads/{file}
58+
59+
</main>
60+
61+
<footer class="mastfoot mt-auto">
62+
63+
</footer>
64+
</div>
65+
66+
<!-- Bootstrap core JavaScript
67+
================================================== -->
68+
<!-- Placed at the end of the document so the pages load faster -->
69+
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
70+
<script>window.jQuery || document.write('<script src="../../assets/js/vendor/jquery-slim.min.js"><\/script>')</script>
71+
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
72+
</body>
73+
</html>

style.css

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
/*
2+
* Globals
3+
*/
4+
5+
/* Links */
6+
a,
7+
a:focus,
8+
a:hover {
9+
color: #fff;
10+
}
11+
12+
/* Custom default button */
13+
.btn-secondary,
14+
.btn-secondary:hover,
15+
.btn-secondary:focus {
16+
color: #333;
17+
text-shadow: none; /* Prevent inheritance from `body` */
18+
background-color: #fff;
19+
border: .05rem solid #fff;
20+
}
21+
22+
23+
/*
24+
* Base structure
25+
*/
26+
27+
html,
28+
body {
29+
height: 100%;
30+
background-color: #333;
31+
}
32+
33+
body {
34+
display: -ms-flexbox;
35+
display: -webkit-box;
36+
display: flex;
37+
-ms-flex-pack: center;
38+
-webkit-box-pack: center;
39+
justify-content: center;
40+
color: #fff;
41+
text-shadow: 0 .05rem .1rem rgba(0, 0, 0, .5);
42+
box-shadow: inset 0 0 5rem rgba(0, 0, 0, .5);
43+
}
44+
45+
.cover-container {
46+
max-width: 80em;
47+
}
48+
49+
50+
/*
51+
* Header
52+
*/
53+
.masthead {
54+
margin-bottom: 2rem;
55+
}
56+
57+
.masthead-brand {
58+
margin-bottom: 0;
59+
}
60+
61+
.nav-masthead .nav-link {
62+
padding: .25rem 0;
63+
font-weight: 700;
64+
color: rgba(255, 255, 255, .5);
65+
background-color: transparent;
66+
border-bottom: .25rem solid transparent;
67+
}
68+
69+
.nav-masthead .nav-link:hover,
70+
.nav-masthead .nav-link:focus {
71+
border-bottom-color: rgba(255, 255, 255, .25);
72+
}
73+
74+
.nav-masthead .nav-link + .nav-link {
75+
margin-left: 1rem;
76+
}
77+
78+
.nav-masthead .active {
79+
color: #fff;
80+
border-bottom-color: #fff;
81+
}
82+
83+
@media (min-width: 80em) {
84+
.masthead-brand {
85+
float: left;
86+
}
87+
.nav-masthead {
88+
float: right;
89+
}
90+
}
91+
92+
93+
/*
94+
* Cover
95+
*/
96+
.cover {
97+
padding: 0 1.5rem;
98+
}
99+
.cover .btn-lg {
100+
padding: .75rem 1.25rem;
101+
font-weight: 700;
102+
}
103+
104+
105+
/*
106+
* Footer
107+
*/
108+
.mastfoot {
109+
color: rgba(255, 255, 255, .5);
110+
}

0 commit comments

Comments
 (0)