@@ -20,70 +20,6 @@ func showOfflineBnkMethodSetPopUp() {
20
20
)
21
21
}
22
22
23
- func modifyAttributes( _ attributes: inout [ String : AccountAttribute ] ) {
24
-
25
- attributes [ " type " ] = AccountAttribute . with {
26
- $0. stringValue = " premium "
27
- }
28
- attributes [ " player-license " ] = AccountAttribute . with {
29
- $0. stringValue = " premium "
30
- }
31
- attributes [ " financial-product " ] = AccountAttribute . with {
32
- $0. stringValue = " pr:premium,tc:0 "
33
- }
34
- attributes [ " name " ] = AccountAttribute . with {
35
- $0. stringValue = " Spotify Premium "
36
- }
37
-
38
- //
39
-
40
- attributes [ " unrestricted " ] = AccountAttribute . with {
41
- $0. boolValue = true
42
- }
43
- attributes [ " catalogue " ] = AccountAttribute . with {
44
- $0. stringValue = " premium "
45
- }
46
- attributes [ " streaming-rules " ] = AccountAttribute . with {
47
- $0. stringValue = " "
48
- }
49
- attributes [ " pause-after " ] = AccountAttribute . with {
50
- $0. longValue = 0
51
- }
52
-
53
- //
54
-
55
- attributes [ " ads " ] = AccountAttribute . with {
56
- $0. boolValue = false
57
- }
58
-
59
- attributes. removeValue ( forKey: " ad-use-adlogic " )
60
- attributes. removeValue ( forKey: " ad-catalogues " )
61
-
62
- //
63
-
64
- attributes [ " shuffle-eligible " ] = AccountAttribute . with {
65
- $0. boolValue = true
66
- }
67
- attributes [ " high-bitrate " ] = AccountAttribute . with {
68
- $0. boolValue = true
69
- }
70
- attributes [ " offline " ] = AccountAttribute . with {
71
- $0. boolValue = true
72
- }
73
- attributes [ " nft-disabled " ] = AccountAttribute . with {
74
- $0. stringValue = " 1 "
75
- }
76
- attributes [ " can_use_superbird " ] = AccountAttribute . with {
77
- $0. boolValue = true
78
- }
79
-
80
- //
81
-
82
- attributes [ " com.spotify.madprops.use.ucs.product.state " ] = AccountAttribute . with {
83
- $0. boolValue = true
84
- }
85
- }
86
-
87
23
class SPTCoreURLSessionDataDelegateHook : ClassHook < NSObject > {
88
24
89
25
static let targetName = " SPTCoreURLSessionDataDelegate "
@@ -128,7 +64,7 @@ class SPTCoreURLSessionDataDelegateHook: ClassHook<NSObject> {
128
64
129
65
if UserDefaults . patchType == . requests {
130
66
131
- modifyAttributes ( & bootstrapMessage. attributes )
67
+ modifyRemoteConfiguration ( & bootstrapMessage. ucsResponse )
132
68
133
69
orig. URLSession (
134
70
session,
0 commit comments