wplayer

Check-in [4031c3b991]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Defend against non-ASCII
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:4031c3b99130eab286d44b7aee15db3107227be78c6191d965c1224f20e8d0a0
User & Date: vandys 2018-06-12 23:32:29
Context
2018-06-13
22:32
We have the metadata now, so have an "info" button to pop up all the available data. check-in: b7acfe7efc user: vandys tags: master, trunk
2018-06-12
23:32
Defend against non-ASCII check-in: 4031c3b991 user: vandys tags: master, trunk
22:54
Just a TBD list check-in: 81ca7f4d56 user: vandys tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to get.py.

151
152
153
154
155
156
157
158
159
160
161
162
163
164
165

	    # Internal stuff from TinyTag
	    if k[0] == '_':
		continue

	    # Straight ASCII here
	    if isinstance(v, unicode):
		v = str(v)

	    # Inherently numeric channels
	    if k in ("year", "channels", "track", "disc", "track_total",
		    "disc_total"):
		if v and isinstance(v, str) and v.isdigit():
		    v = int(v)








|







151
152
153
154
155
156
157
158
159
160
161
162
163
164
165

	    # Internal stuff from TinyTag
	    if k[0] == '_':
		continue

	    # Straight ASCII here
	    if isinstance(v, unicode):
		v = uncharenc(v)

	    # Inherently numeric channels
	    if k in ("year", "channels", "track", "disc", "track_total",
		    "disc_total"):
		if v and isinstance(v, str) and v.isdigit():
		    v = int(v)