Skip to content

Commit

Permalink
fix other rules error
Browse files Browse the repository at this point in the history
  • Loading branch information
vernesong committed Aug 3, 2023
1 parent c227071 commit a643126
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions luci-app-openclash/root/usr/share/openclash/yml_rules_change.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1065,37 +1065,37 @@ if [ "$1" != "0" ]; then
.gsub(/,Google FCM$/, ',$GoogleFCM#delete_')
.gsub(/#delete_/, '')
};
Value['script']['code'].to_s.gsub!(/\"Bilibili\": \"Asian TV\"/,'\"Bilibili\": \"$Bilibili#delete_\"')
.gsub!(/\"Bahamut\": \"Global TV\"/,'\"Bahamut\": \"$Bahamut#delete_\"')
.gsub!(/\"HBO Max\": \"Global TV\"/,'\"HBO Max\": \"$HBOMax#delete_\"')
.gsub!(/\"HBO Go\": \"Global TV\"/,'\"HBO Go\": \"$HBOGo#delete_\"')
.gsub!(/\"Discovery Plus\": \"Global TV\"/,'\"Discovery Plus\": \"$Discovery#delete_\"')
.gsub!(/\"DAZN\": \"Global TV\"/,'\"DAZN\": \"$DAZN#delete_\"')
.gsub!(/\"Pornhub\": \"Global TV\"/,'\"Pornhub\": \"$Pornhub#delete_\"')
.gsub!(/: \"Global TV\"/,': \"$GlobalTV#delete_\"')
.gsub!(/: \"Asian TV\"/,': \"$AsianTV#delete_\"')
.gsub!(/: \"Proxy\"/,': \"$Proxy#delete_\"')
.gsub!(/: \"YouTube\"/,': \"$Youtube#delete_\"')
.gsub!(/: \"Apple\"/,': \"$Apple#delete_\"')
.gsub!(/: \"Apple TV\"/,': \"$AppleTV#delete_\"')
.gsub!(/: \"Scholar\"/,': \"$Scholar#delete_\"')
.gsub!(/: \"Netflix\"/,': \"$Netflix#delete_\"')
.gsub!(/: \"Disney\"/,': \"$Disney#delete_\"')
.gsub!(/: \"Spotify\"/,': \"$Spotify#delete_\"')
.gsub!(/: \"OpenAI\"/,': \"$OpenAI#delete_\"')
.gsub!(/: \"Steam\"/,': \"$Steam#delete_\"')
.gsub!(/: \"miHoYo\"/,': \"$miHoYo#delete_\"')
.gsub!(/: \"AdBlock\"/,': \"$AdBlock#delete_\"')
.gsub!(/: \"Speedtest\"/,': \"$Speedtest#delete_\"')
.gsub!(/: \"Telegram\"/,': \"$Telegram#delete_\"')
.gsub!(/: \"Crypto\"/,': \"$Crypto#delete_\"')
.gsub!(/: \"Discord\"/,': \"$Discord#delete_\"')
.gsub!(/: \"Microsoft\"/,': \"$Microsoft#delete_\"')
.gsub!(/: \"PayPal\"/,': \"$PayPal#delete_\"')
.gsub!(/: \"Domestic\"/,': \"$Domestic#delete_\"')
.gsub!(/: \"Google FCM\"/,': \"$GoogleFCM#delete_\"')
.gsub!(/return \"Domestic\"$/, 'return \"$Domestic#delete_\"')
.gsub!(/return \"Others\"$/, 'return \"$Others#delete_\"')
Value['script']['code'].to_s.gsub!(/\'Bilibili\': \'Asian TV\'/,'\'Bilibili\': \'$Bilibili#delete_\'')
.gsub!(/\'Bahamut\': \'Global TV\'/,'\'Bahamut\': \'$Bahamut#delete_\'')
.gsub!(/\'HBO Max\': \'Global TV\'/,'\'HBO Max\': \'$HBOMax#delete_\'')
.gsub!(/\'HBO Go\': \'Global TV\'/,'\'HBO Go\': \'$HBOGo#delete_\'')
.gsub!(/\'Discovery Plus\': \'Global TV\'/,'\'Discovery Plus\': \'$Discovery#delete_\'')
.gsub!(/\'DAZN\': \'Global TV\'/,'\'DAZN\': \'$DAZN#delete_\'')
.gsub!(/\'Pornhub\': \'Global TV\'/,'\'Pornhub\': \'$Pornhub#delete_\'')
.gsub!(/: \'Global TV\'/,': \'$GlobalTV#delete_\'')
.gsub!(/: \'Asian TV\'/,': \'$AsianTV#delete_\'')
.gsub!(/: \'Proxy\'/,': \'$Proxy#delete_\'')
.gsub!(/: \'YouTube\'/,': \'$Youtube#delete_\'')
.gsub!(/: \'Apple\'/,': \'$Apple#delete_\'')
.gsub!(/: \'Apple TV\'/,': \'$AppleTV#delete_\'')
.gsub!(/: \'Scholar\'/,': \'$Scholar#delete_\'')
.gsub!(/: \'Netflix\'/,': \'$Netflix#delete_\'')
.gsub!(/: \'Disney\'/,': \'$Disney#delete_\'')
.gsub!(/: \'Spotify\'/,': \'$Spotify#delete_\'')
.gsub!(/: \'OpenAI\'/,': \'$OpenAI#delete_\'')
.gsub!(/: \'Steam\'/,': \'$Steam#delete_\'')
.gsub!(/: \'miHoYo\'/,': \'$miHoYo#delete_\'')
.gsub!(/: \'AdBlock\'/,': \'$AdBlock#delete_\'')
.gsub!(/: \'Speedtest\'/,': \'$Speedtest#delete_\'')
.gsub!(/: \'Telegram\'/,': \'$Telegram#delete_\'')
.gsub!(/: \'Crypto\'/,': \'$Crypto#delete_\'')
.gsub!(/: \'Discord\'/,': \'$Discord#delete_\'')
.gsub!(/: \'Microsoft\'/,': \'$Microsoft#delete_\'')
.gsub!(/: \'PayPal\'/,': \'$PayPal#delete_\'')
.gsub!(/: \'Domestic\'/,': \'$Domestic#delete_\'')
.gsub!(/: \'Google FCM\'/,': \'$GoogleFCM#delete_\'')
.gsub!(/return \'Domestic\'$/, 'return \'$Domestic#delete_\'')
.gsub!(/return \'Others\'$/, 'return \'$Others#delete_\'')
.gsub!(/#delete_/, '');
File.open('$3','w') {|f| YAML.dump(Value, f)};
rescue Exception => e
Expand Down

0 comments on commit a643126

Please sign in to comment.