-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathfetch_playlists.sh
More file actions
19 lines (14 loc) · 810 Bytes
/
Copy pathfetch_playlists.sh
File metadata and controls
19 lines (14 loc) · 810 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
RES_PATH="src/main/res/raw"
# Make sure raw directory exists
mkdir $RES_PATH
# Check if json files are already there
COUNT=`ls -l $RES_PATH/tvos*.json | wc -l`
# Skip download if files already exist
if [ $COUNT != 3 ]
then
wget http://a1.phobos.apple.com/us/r1000/000/Features/atv/AutumnResources/videos/entries.json -O $RES_PATH/tvos10.json
wget https://sylvan.apple.com/Aerials/2x/entries.json -O $RES_PATH/tvos11.json --ca-certificate=sylvan.apple.com.cer
wget https://sylvan.apple.com/Aerials/resources.tar -qO - --ca-certificate=sylvan.apple.com.cer | tar -xf - entries.json --to-stdout > $RES_PATH/tvos12.json
wget https://sylvan.apple.com/Aerials/resources-13.tar -qO - --ca-certificate=sylvan.apple.com.cer | tar -xf - entries.json --to-stdout > $RES_PATH/tvos13.json
fi