User:Flacs: Difference between revisions

From Dolphin Emulator Wiki
Jump to navigation Jump to search
(add Python script to find dead YouTube videos)
Line 1: Line 1:
flacs on freenode
flacs on freenode
= Find Dead YouTube Videos =
# Go to [[Special:Export]]
# add game categories:
#* Category:GameCube_games
#* Category:Triforce_games
#* Category:Wii_games
#* Category:Virtual_Console_games
#* Category:Wii_Channels
#* Category:WiiWare_games
# click Export
# create a Google API key (https://console.cloud.google.com/apis/credentials)
# run ./the_following_script.py Dolphin+Emulator+Wiki-*.xml
<pre>
#!/usr/bin/env python3
import re
import requests
import sys
API_KEY = 'PUT YOUR API KEY HERE'
for path in sys.argv[1:]:
text = open(path).read()
ids = re.findall(r'(?<=vid.=)[^|]{11}(?=\|)', text)
print(f'found {len(ids)} YouTube videos')
for i in range(0, len(ids), 50):
chunk = ids[i:i+50]
response = requests.get(
'https://youtube.googleapis.com/youtube/v3/videos',
params={'part': 'id', 'key': API_KEY, 'id': ','.join(chunk)},
headers={'Accept': 'application/json'},
)
valid_ids = [item['id'] for item in response.json()['items']]
for id in chunk:
if id not in valid_ids:
print(id)
</pre>


= Articles without videos by platform =
= Articles without videos by platform =

Revision as of 20:31, 21 February 2021

flacs on freenode

Find Dead YouTube Videos

  1. Go to Special:Export
  2. add game categories:
    • Category:GameCube_games
    • Category:Triforce_games
    • Category:Wii_games
    • Category:Virtual_Console_games
    • Category:Wii_Channels
    • Category:WiiWare_games
  3. click Export
  4. create a Google API key (https://console.cloud.google.com/apis/credentials)
  5. run ./the_following_script.py Dolphin+Emulator+Wiki-*.xml
#!/usr/bin/env python3

import re
import requests
import sys

API_KEY = 'PUT YOUR API KEY HERE'

for path in sys.argv[1:]:
	text = open(path).read()
	ids = re.findall(r'(?<=vid.=)[^|]{11}(?=\|)', text)
	print(f'found {len(ids)} YouTube videos')
	for i in range(0, len(ids), 50):
		chunk = ids[i:i+50]
		response = requests.get(
			'https://youtube.googleapis.com/youtube/v3/videos',
			params={'part': 'id', 'key': API_KEY, 'id': ','.join(chunk)},
			headers={'Accept': 'application/json'},
		)
		valid_ids = [item['id'] for item in response.json()['items']]
		for id in chunk:
			if id not in valid_ids:
				print(id)

Articles without videos by platform

GameCube list
Wii list
WiiWare list
Wii Channels list
Virtual Console list
Triforce list
Flattened Lists list

Not released

No indication that these games were ever sold. We have compatibility ratings for some of them but I think those are bogus.

Some Homebrew Game IDs

  • OSGK - Gecko OS 1.9.1
  • 7531 - Gecko OS 1.9.3
  • UGG3 - Gecko OS 1.9.3.1
  • GSWWGL/GSWEGL/GSWPGL/GSWJGL - Swiss
  • UNEO - USB Loader GX forwarder
  • UNLR - USB Loader GX channel
  • LXVS - Nintendont forwarder
  • UCXF - CFG USB Loader forwarder
  • RIIVRI - Riivolution
  • 9XGX - SNES9xGX
  • VBGX - Visual Boy Advance GX
  • DWFA - WiiFlow

Valid Channel IDs

Nintendo's update servers offer TMD downloads for these IDs (so far I've only enumerated A/E/J/K/P regions):

Notably absent:

Invalid Game IDs

Virtual Console game IDs on this Wiki for which Nintendo's update server returns 404:

Not sure how we even got these IDs:

  • HCBP01 - Mario Kart Channel
    • Came from me. Likely from a WiiBrew doc that listed Channel IDs, but I can't find it again now. Kolano (talk) 13:19, 6 September 2020 (CEST)
  • UFN100 - Wii Fit Channel
    • From Faefdsedf, they seemed to have a good track record on contributions. If it's at all correct though it's probably more likely to be UFN101, since it's the only "00" Publisher code.

All Official Game IDs

(commented out)