Prepare site for TWRP app json

Change-Id: I83129be9a2d1777bbfe13504358bccf27ddabd16
diff --git a/_devices/asusTF300T.markdown b/_devices/asusTF300T.markdown
index 0d4d841..0cbf84f 100644
--- a/_devices/asusTF300T.markdown
+++ b/_devices/asusTF300T.markdown
@@ -2,7 +2,7 @@
 layout: device
 title:  "Asus Transformer TF300T"
 codename: tf300t
-downloadfolder: tf300t
+downloadfolder: "TF300T|tf300t|TF300TG (3G model)|tf300tg"
 oldurl: http://teamw.in/project/twrp2/97
 supportstatus: No Longer Updated
 maintainer: None
diff --git a/_devices/htconem7dualsim.markdown b/_devices/htconem7dualsim.markdown
index dd1068c..aeb2633 100644
--- a/_devices/htconem7dualsim.markdown
+++ b/_devices/htconem7dualsim.markdown
@@ -2,7 +2,7 @@
 layout: device
 title:  "HTC One m7 Dual SIM"
 codename: m7cd
-downloadfolder: m7cdtu
+downloadfolder: "m7cdtu|m7cdtu|m7cdug|m7cdug|m7cdwg|m7cdwg"
 oldurl: http://teamw.in/project/twrp2/278
 supportstatus: Current
 maintainer: Bruno Martins (bgcngm)
diff --git a/_devices/lgg2.markdown b/_devices/lgg2.markdown
index e1d9df0..a00de69 100644
--- a/_devices/lgg2.markdown
+++ b/_devices/lgg2.markdown
@@ -2,7 +2,7 @@
 layout: device
 title:  "LG G2"
 codename: G2
-downloadfolder: G2
+downloadfolder: "AT&T USA|g2att|Sprint USA|g2spr|T-Mobile USA|g2tmo|Verizon USA|g2vzw|Bell Canada|g2bell|Rogers Canada|g2rog"
 oldurl: http://teamw.in/project/twrp2/197
 supportstatus: No longer updated
 maintainer: None
diff --git a/_devices/lggpad83.markdown b/_devices/lggpad83.markdown
index 5062b68..26bf705 100644
--- a/_devices/lggpad83.markdown
+++ b/_devices/lggpad83.markdown
@@ -2,7 +2,7 @@
 layout: device
 title:  "LG G Pad 8.3 (v500, v510, awifi, palman)"
 codename: v500
-downloadfolder: v500
+downloadfolder: "Regular v500|v500|Google Edition v510|v510"
 oldurl: http://teamw.in/project/twrp2/213
 supportstatus: Current
 maintainer: fefifofum
diff --git a/_devices/lgnexus5.markdown b/_devices/lgnexus5.markdown
index 4b870ca..5f5ba08 100644
--- a/_devices/lgnexus5.markdown
+++ b/_devices/lgnexus5.markdown
@@ -2,7 +2,7 @@
 layout: device
 title:  "LG Nexus 5"
 codename: hammerhead
-downloadfolder: hammerhead
+downloadfolder: "Normal (recommended)|hammerhead|hammerheadcaf (use only if you know this is what you need)|hammerheadcaf"
 oldurl: http://teamw.in/project/twrp2/205
 supportstatus: Current
 maintainer: Dees_Troy
diff --git a/_devices/samsunggalaxynote3qualcomm.markdown b/_devices/samsunggalaxynote3qualcomm.markdown
index 1d78781..8838bc8 100644
--- a/_devices/samsunggalaxynote3qualcomm.markdown
+++ b/_devices/samsunggalaxynote3qualcomm.markdown
@@ -2,7 +2,7 @@
 layout: device
 title:  "Samsung Galaxy Note 3 Qualcomm"
 codename: hlte
-downloadfolder: hlte
+downloadfolder: "Europe & Americas (SM-N9005, SM-N900A, SM-N900W8, SM-N900T, SM-N900R4, SM-N900P, SM-N900V)|hlte|Korea (SM-N900K, SM-N900L, SM-N900S)|hlteskt|Japan (SCL22, SC-01F)|hltekdi"
 oldurl: http://teamw.in/project/twrp2/202
 supportstatus: Current
 maintainer: jcadduono
diff --git a/_devices/samsunggalaxynote4qualcomm.markdown b/_devices/samsunggalaxynote4qualcomm.markdown
index f1c9c76..5949bbd 100644
--- a/_devices/samsunggalaxynote4qualcomm.markdown
+++ b/_devices/samsunggalaxynote4qualcomm.markdown
@@ -2,6 +2,7 @@
 layout: device
 title:  "Samsung Galaxy Note 4 Qualcomm"
 codename: trlte
+downloadfolder: "Canada|trltecan|India|trltedt|International (N910-F)|trltexx|Sprint|trltespr|T-Mobile|trltetmo|Verizon|trltevzw|US Cellular|trlteusc|International Duos|trlteduoszh"
 oldurl: http://teamw.in/project/twrp2/266
 supportstatus: Current
 maintainer: bigbiff
diff --git a/_devices/samsunggalaxynote5.markdown b/_devices/samsunggalaxynote5.markdown
index eca11f8..6d573f8 100644
--- a/_devices/samsunggalaxynote5.markdown
+++ b/_devices/samsunggalaxynote5.markdown
@@ -2,7 +2,7 @@
 layout: device
 title: "Samsung Galaxy Note 5"
 codename: noblelte
-downloadfolder: noblelte
+downloadfolder: "International GSM (SM-N920C, SM-N920CD, SM-N920G, SM-N920I)|noblelte|Canada (SM-N920W8)|nobleltecan|T-Mobile (SM-N920T)|nobleltetmo|Sprint (SM-N920P)|nobleltespr|US Cellular (SM-N920R4)|noblelteusc|China & China Duos (SM-N9200, SM-N9208)|nobleltezt|Korea (SM-N920K, SM-N920L, SM-N920S)|noblelteskt"
 supportstatus: Current
 maintainer: "jcadduono, bigbiff"
 oem: Samsung
diff --git a/_devices/samsunggalaxynote7exynos.markdown b/_devices/samsunggalaxynote7exynos.markdown
index c6ab25e..3f4f349 100644
--- a/_devices/samsunggalaxynote7exynos.markdown
+++ b/_devices/samsunggalaxynote7exynos.markdown
@@ -3,7 +3,7 @@
 title: "Samsung Galaxy Note 7 (Exynos)"
 codename: gracelte
 oem: Samsung
-downloadfolder: gracelte
+downloadfolder: "International & Duos (SM-N930F, SM-N930FD)|gracelte|Korea (SM-N930K, SM-N930L, SM-N930S)|graceltekor"
 supportstatus: Current
 maintainer: jcadduono, bigbiff
 ddof: "/dev/block/platform/155a0000.ufs/by-name/RECOVERY"
diff --git a/_devices/samsunggalaxynote80.markdown b/_devices/samsunggalaxynote80.markdown
index c86b61a..5fc0c28 100644
--- a/_devices/samsunggalaxynote80.markdown
+++ b/_devices/samsunggalaxynote80.markdown
@@ -2,7 +2,7 @@
 layout: device
 title:  "Samsung Galaxy Note 8.0"
 codename: n5100
-downloadfolder: n5100
+downloadfolder: "n5100|n5100|n5110|n5110"
 supportstatus: Current
 maintainer: RGIB
 oem: Samsung
diff --git a/_devices/samsunggalaxys2plus.markdown b/_devices/samsunggalaxys2plus.markdown
index a4701a4..bd44114 100644
--- a/_devices/samsunggalaxys2plus.markdown
+++ b/_devices/samsunggalaxys2plus.markdown
@@ -2,6 +2,7 @@
 layout: device
 title:  "Samsung Galaxy S2 Plus"
 codename: s2ve
+downloadfolder: "s2ve|s2ve|s2vep|s2vep"
 oldurl: http://teamw.in/project/twrp2/250
 supportstatus: Current
 maintainer: None
diff --git a/_devices/samsunggalaxys5qualcomm.markdown b/_devices/samsunggalaxys5qualcomm.markdown
index 8c97860..7930634 100644
--- a/_devices/samsunggalaxys5qualcomm.markdown
+++ b/_devices/samsunggalaxys5qualcomm.markdown
@@ -2,7 +2,7 @@
 layout: device
 title: "Samsung Galaxy S5 Qualcomm"
 codename: klte
-downloadfolder: klte
+downloadfolder: "International, Americas, and Oceanic (SM-G900F, SM-G900W8, SM-G900T, SM-G900M, SM-G900P, SM-G900V, SM-G900I)|klte|International Duos (SM-G900FD)|klteduos|China & China Duos (SM-G9006V, SM-G9008V, SM-G9006W, SM-G9008W, SM-G9009W)|kltechn|Japan (SCL23, SC-04F)|kltekdi|Korea (SM-G900K, SM-G900L, SM-G900S)|klteskt"
 oldurl: http://teamw.in/project/twrp2/229
 supportstatus: Current
 maintainer: jcadduono
diff --git a/_devices/samsunggalaxys6.markdown b/_devices/samsunggalaxys6.markdown
index 80dc959..43689c6 100644
--- a/_devices/samsunggalaxys6.markdown
+++ b/_devices/samsunggalaxys6.markdown
@@ -2,7 +2,7 @@
 layout: device
 title: "Samsung Galaxy S6"
 codename: zeroflte
-downloadfolder: zeroflte
+downloadfolder: "International GSM (SM-G920F, SM-G920FD, SM-G920I)|zeroflte|Canada (SM-G920W8)|zerofltecan|T-Mobile (SM-G920T)|zerofltetmo|Sprint (SM-G920P)|zerofltespr|US Cellular (SM-G920R4)|zeroflteusc|China & China Duos (SM-G9200, SM-G9208, SM-G9209)|zerofltezt|Korea (SM-G920K, SM-G920L, SM-G920S)|zeroflteskt"
 supportstatus: Current
 maintainer: "jcadduono, bigbiff"
 oem: Samsung
diff --git a/_devices/samsunggalaxys6edge.markdown b/_devices/samsunggalaxys6edge.markdown
index aeb3eaa..80631bd 100644
--- a/_devices/samsunggalaxys6edge.markdown
+++ b/_devices/samsunggalaxys6edge.markdown
@@ -2,7 +2,7 @@
 layout: device
 title: "Samsung Galaxy S6 edge"
 codename: zerolte
-downloadfolder: zerolte
+downloadfolder: "International GSM (SM-G925F, SM-G925FD, SM-G925I)|zerolte|Canada (SM-G925W8)|zeroltecan|T-Mobile (SM-G925T)|zeroltetmo|Sprint (SM-G925P)|zeroltespr|US Cellular (SM-G925R4)|zerolteusc|China (SM-G9250)|zeroltezt|Korea (SM-G925K, SM-G925L, SM-G925S)|zerolteskt"
 supportstatus: Current
 maintainer: "jcadduono, bigbiff"
 oem: Samsung
diff --git a/_devices/samsunggalaxys6edgeplus.markdown b/_devices/samsunggalaxys6edgeplus.markdown
index df1277d..466a415 100644
--- a/_devices/samsunggalaxys6edgeplus.markdown
+++ b/_devices/samsunggalaxys6edgeplus.markdown
@@ -2,7 +2,7 @@
 layout: device
 title: "Samsung Galaxy S6 edge+"
 codename: zenlte
-downloadfolder: zenlte
+downloadfolder: "International GSM (SM-G928F, SM-G928FD, SM-G928G, SM-G928I)|zenlte|Canada (SM-G928W8)|zenltecan|T-Mobile USA (SM-G928T)|zenltetmo|Sprint (SM-G928P)|zenltespr|US Cellular (SM-G928R4)|zenlteusc|China & China Duos (SM-G9280, SM-G9287, SM-G9287C)|zenltezt|Korea (SM-G928K, SM-G928L, SM-G928S)|zenlteskt"
 supportstatus: Current
 maintainer: "jcadduono"
 oem: Samsung
@@ -41,7 +41,7 @@
   </li>
 {% endfor %}
 </ul>
-<p class="text">T-Mobile (SM-G928T):</p>
+<p class="text">T-Mobile USA (SM-G928T):</p>
 <ul>
 {% for mirror in site.data.mirrors %}
   <li>
diff --git a/_devices/samsunggalaxys7.markdown b/_devices/samsunggalaxys7.markdown
index 5867672..7993af6 100644
--- a/_devices/samsunggalaxys7.markdown
+++ b/_devices/samsunggalaxys7.markdown
@@ -2,7 +2,7 @@
 layout: device
 title: "Samsung Galaxy S7 (Exynos)"
 codename: herolte
-downloadfolder: herolte
+downloadfolder: "International &amp; Canada (SM-G930F, SM-G930FD, SM-G930X, SM-G930W8)|herolte|Korea (SM-G930K, SM-G930L, SM-G930S)|heroltekor"
 supportstatus: Current
 maintainer: jcadduono
 devicetree: "https://github.com/TeamWin/android_device_samsung_herolte"
diff --git a/_devices/samsunggalaxys7edge.markdown b/_devices/samsunggalaxys7edge.markdown
index 6926a4f..215b236 100644
--- a/_devices/samsunggalaxys7edge.markdown
+++ b/_devices/samsunggalaxys7edge.markdown
@@ -2,7 +2,7 @@
 layout: device
 title: "Samsung Galaxy S7 edge (Exynos)"
 codename: hero2lte
-downloadfolder: hero2lte
+downloadfolder: "International &amp; Canada (SM-G935F, SM-G935FD, SM-G935X, SM-G935W8)|hero2lte|Korea (SM-G935K, SM-G935L, SM-G935S)|hero2ltekor"
 supportstatus: Current
 maintainer: jcadduono
 devicetree: "https://github.com/TeamWin/android_device_samsung_hero2lte"
diff --git a/_devices/samsunggalaxytab2101.markdown b/_devices/samsunggalaxytab2101.markdown
index 6379eb1..3a74696 100644
--- a/_devices/samsunggalaxytab2101.markdown
+++ b/_devices/samsunggalaxytab2101.markdown
@@ -2,7 +2,7 @@
 layout: device
 title:  "Samsung Galaxy Tab 2 10.1"
 codename: p5100
-downloadfolder: p5100
+downloadfolder: "p5100|p5100|p5110|p5110"
 oldurl: http://teamw.in/project/twrp2/283
 supportstatus: Current
 maintainer: None
diff --git a/_devices/samsunggalaxytab270.markdown b/_devices/samsunggalaxytab270.markdown
index 20082b1..046eddb 100644
--- a/_devices/samsunggalaxytab270.markdown
+++ b/_devices/samsunggalaxytab270.markdown
@@ -2,7 +2,7 @@
 layout: device
 title:  "Samsung Galaxy Tab 2 7.0"
 codename: p3100
-downloadfolder: p3100
+downloadfolder: "p3100|p3100|p3110|p3110"
 oldurl: http://teamw.in/project/twrp2/283
 supportstatus: Current
 maintainer: None
diff --git a/_devices/samsunggalaxytab77.markdown b/_devices/samsunggalaxytab77.markdown
index ce39bb8..857c7e3 100644
--- a/_devices/samsunggalaxytab77.markdown
+++ b/_devices/samsunggalaxytab77.markdown
@@ -2,7 +2,7 @@
 layout: device
 title:  "Samsung Galaxy Tab 7.7"
 codename: p6810
-downloadfolder: degas
+downloadfolder: "i815|i815|p6800|p6800|p6810|p6810"
 oldurl: http://teamw.in/project/twrp2/108
 supportstatus: Current
 devicetree: https://github.com/TeamWin/android_device_samsung_degas.git
diff --git a/applist.json b/applist.json
new file mode 100644
index 0000000..8ea682f
--- /dev/null
+++ b/applist.json
@@ -0,0 +1,13 @@
+---
+layout: none
+---
+[
+    {% for device in site.devices %}
+       {
+         "title"    : "{{ device.title | escape }} -- {{ device.codename }}",
+         "url"      : "{{ device.url }}",
+         "dlfolder" : "{{ device.downloadfolder }}",
+         "recovery" : "{{ device.ddof }}"
+       } {% if forloop.last %}{% else %},{% endif %}
+   {% endfor %}
+]