@@ -33,7 +33,7 @@ func BadoinkSite(wg *sync.WaitGroup, updateSite bool, knownScenes []string, out
33
33
34
34
commonDb ,_ := models .GetCommonDB ()
35
35
36
- var Has6K7K bool = false
36
+ var UHD = "NO"
37
37
38
38
sceneCollector .OnHTML (`html` ,func (e * colly.HTMLElement ) {
39
39
sc := models.ScrapedScene {}
@@ -82,8 +82,12 @@ func BadoinkSite(wg *sync.WaitGroup, updateSite bool, knownScenes []string, out
82
82
e .ForEach (`a.video-tag` ,func (id int ,e * colly.HTMLElement ) {
83
83
sc .Tags = append (sc .Tags ,strings .TrimSpace (e .Text ))
84
84
if strings .Contains (strings .TrimSpace (e .Text ),"7K" ) {
85
- Has6K7K = true
85
+ UHD = "7K"
86
86
}
87
+ if strings .Contains (strings .TrimSpace (e .Text ),"8K" ) {
88
+ UHD = "8K"
89
+ }
90
+
87
91
})
88
92
if scraperID == "vrcosplayx" {
89
93
sc .Tags = append (sc .Tags ,"Cosplay" ,"Parody" )
@@ -151,14 +155,20 @@ func BadoinkSite(wg *sync.WaitGroup, updateSite bool, knownScenes []string, out
151
155
e .ForEach (`a.video-tag` ,func (id int ,e * colly.HTMLElement ) {
152
156
sc .Tags = append (sc .Tags ,strings .TrimSpace (e .Text ))
153
157
if strings .Contains (strings .TrimSpace (e .Text ),"7K" ) {
154
- Has6K7K = true
158
+ UHD = "7K"
159
+ }
160
+ if strings .Contains (strings .TrimSpace (e .Text ),"8K" ) {
161
+ UHD = "8K"
155
162
}
156
163
})
157
-
158
- filenames := []string {"samsung_180_180x180_3dh" ,"oculus_180_180x180_3dh" ,"mobile_180_180x180_3dh" ,"5k_180_180x180_3dh" ,"4k_HEVC_180_180x180_3dh" ,"samsung_180_180x180_3dh_LR" ,"oculus_180_180x180_3dh_LR" ,"mobile_180_180x180_3dh_LR" ,"5k_180_180x180_3dh_LR" ,"4k_HEVC_180_180x180_3dh_LR" ,"ps4_180_sbs" ,"ps4_pro_180_sbs" }
159
-
160
- if Has6K7K {
164
+ var filenames []string
165
+ switch UHD {
166
+ case "8K" :
167
+ filenames = []string {"8k_180_180x180_3dh" ,"6k_180_180x180_3dh" ,"5k_180_180x180_3dh" ,"4k_HEVC_180_180x180_3dh" ,"8k_180_180x180_3dh_LR" ,"6k_180_180x180_3dh_LR" ,"5k_180_180x180_3dh_LR" ,"4k_HEVC_180_180x180_3dh_LR" ,"samsung_180_180x180_3dh" ,"oculus_180_180x180_3dh" ,"mobile_180_180x180_3dh" ,"samsung_180_180x180_3dh_LR" ,"oculus_180_180x180_3dh_LR" ,"mobile_180_180x180_3dh_LR" ,"ps4_180_sbs" ,"ps4_pro_180_sbs" }
168
+ case "7K" :
161
169
filenames = []string {"7k_180_180x180_3dh" ,"6k_180_180x180_3dh" ,"5k_180_180x180_3dh" ,"4k_HEVC_180_180x180_3dh" ,"7k_180_180x180_3dh_LR" ,"6k_180_180x180_3dh_LR" ,"5k_180_180x180_3dh_LR" ,"4k_HEVC_180_180x180_3dh_LR" ,"samsung_180_180x180_3dh" ,"oculus_180_180x180_3dh" ,"mobile_180_180x180_3dh" ,"samsung_180_180x180_3dh_LR" ,"oculus_180_180x180_3dh_LR" ,"mobile_180_180x180_3dh_LR" ,"ps4_180_sbs" ,"ps4_pro_180_sbs" }
170
+ default :
171
+ filenames = []string {"samsung_180_180x180_3dh" ,"oculus_180_180x180_3dh" ,"mobile_180_180x180_3dh" ,"5k_180_180x180_3dh" ,"4k_HEVC_180_180x180_3dh" ,"samsung_180_180x180_3dh_LR" ,"oculus_180_180x180_3dh_LR" ,"mobile_180_180x180_3dh_LR" ,"5k_180_180x180_3dh_LR" ,"4k_HEVC_180_180x180_3dh_LR" ,"ps4_180_sbs" ,"ps4_pro_180_sbs" }
162
172
}
163
173
164
174
for i := range filenames {