-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Creates and stores session id in local storage allowing for swifter access to data. Also added the objects to another file as was taking a while on the network to fetch the same data each time. Where to watch link has superficial fix but needs more work Added some error handling, again probs needs more work too. Closes #55 Relates #43 Closes #52
- Loading branch information
Showing
3 changed files
with
257 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,211 @@ | ||
const genreObj = { | ||
12: "Adventure", | ||
14: "Fantasy", | ||
16: "Animation", | ||
18: "Drama", | ||
27: "Horror", | ||
28: "Action", | ||
35: "Comedy", | ||
36: "History", | ||
37: "Western", | ||
53: "Thriller", | ||
80: "Crime", | ||
99: "Documentary", | ||
878: "Science Fiction", | ||
9648: "Mystery", | ||
10402: "Music", | ||
10749: "Romance", | ||
10751: "Family", | ||
10752: "War", | ||
10770: "TV Movie", | ||
} | ||
|
||
const languageObj = { | ||
aa: "Afar", | ||
ab: "Abkhazian", | ||
ae: "Avestan", | ||
af: "Afrikaans", | ||
ak: "Akan", | ||
am: "Amharic", | ||
an: "Aragonese", | ||
ar: "Arabic", | ||
as: "Assamese", | ||
av: "Avaric", | ||
ay: "Aymara", | ||
az: "Azerbaijani", | ||
ba: "Bashkir", | ||
be: "Belarusian", | ||
bg: "Bulgarian", | ||
bi: "Bislama", | ||
bm: "Bambara", | ||
bn: "Bengali", | ||
bo: "Tibetan", | ||
br: "Breton", | ||
bs: "Bosnian", | ||
ca: "Catalan", | ||
ce: "Chechen", | ||
ch: "Chamorro", | ||
cn: "Cantonese", | ||
co: "Corsican", | ||
cr: "Cree", | ||
cs: "Czech", | ||
cu: "Slavic", | ||
cv: "Chuvash", | ||
cy: "Welsh", | ||
da: "Danish", | ||
de: "German", | ||
dv: "Divehi", | ||
dz: "Dzongkha", | ||
ee: "Ewe", | ||
el: "Greek", | ||
en: "English", | ||
eo: "Esperanto", | ||
es: "Spanish", | ||
et: "Estonian", | ||
eu: "Basque", | ||
fa: "Persian", | ||
ff: "Fulah", | ||
fi: "Finnish", | ||
fj: "Fijian", | ||
fo: "Faroese", | ||
fr: "French", | ||
fy: "Frisian", | ||
ga: "Irish", | ||
gd: "Gaelic", | ||
gl: "Galician", | ||
gn: "Guarani", | ||
gu: "Gujarati", | ||
gv: "Manx", | ||
ha: "Hausa", | ||
he: "Hebrew", | ||
hi: "Hindi", | ||
ho: "Hiri Motu", | ||
hr: "Croatian", | ||
ht: "Haitian; Haitian Creole", | ||
hu: "Hungarian", | ||
hy: "Armenian", | ||
hz: "Herero", | ||
ia: "Interlingua", | ||
id: "Indonesian", | ||
ie: "Interlingue", | ||
ig: "Igbo", | ||
ii: "Yi", | ||
ik: "Inupiaq", | ||
io: "Ido", | ||
is: "Icelandic", | ||
it: "Italian", | ||
iu: "Inuktitut", | ||
ja: "Japanese", | ||
jv: "Javanese", | ||
ka: "Georgian", | ||
kg: "Kongo", | ||
ki: "Kikuyu", | ||
kj: "Kuanyama", | ||
kk: "Kazakh", | ||
kl: "Kalaallisut", | ||
km: "Khmer", | ||
kn: "Kannada", | ||
ko: "Korean", | ||
kr: "Kanuri", | ||
ks: "Kashmiri", | ||
ku: "Kurdish", | ||
kv: "Komi", | ||
kw: "Cornish", | ||
ky: "Kirghiz", | ||
la: "Latin", | ||
lb: "Letzeburgesch", | ||
lg: "Ganda", | ||
li: "Limburgish", | ||
ln: "Lingala", | ||
lo: "Lao", | ||
lt: "Lithuanian", | ||
lu: "Luba-Katanga", | ||
lv: "Latvian", | ||
mg: "Malagasy", | ||
mh: "Marshall", | ||
mi: "Maori", | ||
mk: "Macedonian", | ||
ml: "Malayalam", | ||
mn: "Mongolian", | ||
mo: "Moldavian", | ||
mr: "Marathi", | ||
ms: "Malay", | ||
mt: "Maltese", | ||
my: "Burmese", | ||
na: "Nauru", | ||
nb: "Norwegian Bokmål", | ||
nd: "Ndebele", | ||
ne: "Nepali", | ||
ng: "Ndonga", | ||
nl: "Dutch", | ||
nn: "Norwegian Nynorsk", | ||
no: "Norwegian", | ||
nr: "Ndebele", | ||
nv: "Navajo", | ||
ny: "Chichewa; Nyanja", | ||
oc: "Occitan", | ||
oj: "Ojibwa", | ||
om: "Oromo", | ||
or: "Oriya", | ||
os: "Ossetian; Ossetic", | ||
pa: "Punjabi", | ||
pi: "Pali", | ||
pl: "Polish", | ||
ps: "Pushto", | ||
pt: "Portuguese", | ||
qu: "Quechua", | ||
rm: "Raeto-Romance", | ||
rn: "Rundi", | ||
ro: "Romanian", | ||
ru: "Russian", | ||
rw: "Kinyarwanda", | ||
sa: "Sanskrit", | ||
sc: "Sardinian", | ||
sd: "Sindhi", | ||
se: "Northern Sami", | ||
sg: "Sango", | ||
sh: "Serbo-Croatian", | ||
si: "Sinhalese", | ||
sk: "Slovak", | ||
sl: "Slovenian", | ||
sm: "Samoan", | ||
sn: "Shona", | ||
so: "Somali", | ||
sq: "Albanian", | ||
sr: "Serbian", | ||
ss: "Swati", | ||
st: "Sotho", | ||
su: "Sundanese", | ||
sv: "Swedish", | ||
sw: "Swahili", | ||
ta: "Tamil", | ||
te: "Telugu", | ||
tg: "Tajik", | ||
th: "Thai", | ||
ti: "Tigrinya", | ||
tk: "Turkmen", | ||
tl: "Tagalog", | ||
tn: "Tswana", | ||
to: "Tonga", | ||
tr: "Turkish", | ||
ts: "Tsonga", | ||
tt: "Tatar", | ||
tw: "Twi", | ||
ty: "Tahitian", | ||
ug: "Uighur", | ||
uk: "Ukrainian", | ||
ur: "Urdu", | ||
uz: "Uzbek", | ||
ve: "Venda", | ||
vi: "Vietnamese", | ||
vo: "Volapük", | ||
wa: "Walloon", | ||
wo: "Wolof", | ||
xh: "Xhosa", | ||
xx: "No Language", | ||
yi: "Yiddish", | ||
yo: "Yoruba", | ||
za: "Zhuang", | ||
zh: "Mandarin", | ||
zu: "Zulu" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters