public string strip_invalid_entities (string original)

Strip a albumname or artistname string to prepare it for calculating the media art path with it.

Certain characters and charactersets will be stripped and a newly allocated string returned which you must free with g_free.

This functions is used internally by get_file and get_path. You will not normally need to call it yourself.

This function provides the following features: 1. Invalid characters include: ()[]<>{}_!@#$^&*+=|\/"'?~; 2. Text inside brackets of ( ), {}, [] and <> pairs are removed. 3. Multiples of space characters are removed.



original string


original stripped of invalid characters which must be freed. On error or if original is empty, null is returned.

Namespace: MediaArt
Package: libmediaart-1.0