Changeset 222b887fd6fe6d7243aeddac082c18e019eb2081
- Timestamp:
- 26/08/07 21:59:02
(1 year ago)
- Author:
- Ilkka Ollakka <ileoo@videolan.org>
- git-committer:
- Ilkka Ollakka <ileoo@videolan.org> 1188158342 +0000
- git-parent:
[1f7cabafa35a48364d348778bfb8f47618c24518]
- git-author:
- Ilkka Ollakka <ileoo@videolan.org> 1188158342 +0000
- Message:
xspf.c: add album-art as <image> and use Title in title (if available),
xspf-specs seems to agree that it's valid this way. (title tag MAY
appear once in item)
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| re02432e |
r222b887 |
|
| 156 | 156 | {"location", SIMPLE_CONTENT, {NULL} }, |
|---|
| 157 | 157 | {"identifier", SIMPLE_CONTENT, {NULL} }, |
|---|
| 158 | | {"image", SIMPLE_CONTENT, {NULL} }, |
|---|
| | 158 | {"image", SIMPLE_CONTENT, {.smpl = set_item_info} }, |
|---|
| 159 | 159 | {"date", SIMPLE_CONTENT, {NULL} }, |
|---|
| 160 | 160 | {"license", SIMPLE_CONTENT, {NULL} }, |
|---|
| … | … | |
| 387 | 387 | {"annotation", SIMPLE_CONTENT, {.smpl = set_item_info} }, |
|---|
| 388 | 388 | {"info", SIMPLE_CONTENT, {NULL} }, |
|---|
| 389 | | {"image", SIMPLE_CONTENT, {NULL} }, |
|---|
| | 389 | {"image", SIMPLE_CONTENT, {.smpl = set_item_info} }, |
|---|
| 390 | 390 | {"album", SIMPLE_CONTENT, {.smpl = set_item_info} }, |
|---|
| 391 | 391 | {"trackNum", SIMPLE_CONTENT, {.smpl = set_item_info} }, |
|---|
| … | … | |
| 611 | 611 | if( !strcmp( psz_name, "title" ) ) |
|---|
| 612 | 612 | { |
|---|
| 613 | | p_input->psz_name = strdup( (char*)psz_value ); |
|---|
| | 613 | input_item_SetTitle( p_input, psz_value ); |
|---|
| 614 | 614 | } |
|---|
| 615 | 615 | else if( !strcmp( psz_name, "creator" ) ) |
|---|
| … | … | |
| 634 | 634 | { |
|---|
| 635 | 635 | input_item_SetDescription( p_input, psz_value ); |
|---|
| | 636 | } |
|---|
| | 637 | else if( !strcmp( psz_name, "image" ) ) |
|---|
| | 638 | { |
|---|
| | 639 | input_item_SetArtURL( p_input, psz_value ); |
|---|
| 636 | 640 | } |
|---|
| 637 | 641 | return VLC_TRUE; |
|---|
| re02432e |
r222b887 |
|
| 151 | 151 | |
|---|
| 152 | 152 | /* -> the name/title (only if different from uri)*/ |
|---|
| 153 | | char *psz_name = input_item_GetName( p_item->p_input ); |
|---|
| | 153 | char *psz_name = input_item_GetTitle( p_item->p_input ); |
|---|
| 154 | 154 | if( psz_name && psz_uri && strcmp( psz_uri, psz_name ) ) |
|---|
| 155 | 155 | { |
|---|
| … | … | |
| 211 | 211 | } |
|---|
| 212 | 212 | free( psz_temp ); |
|---|
| | 213 | |
|---|
| | 214 | psz = input_item_GetArtURL( p_item->p_input ); |
|---|
| | 215 | if( !EMPTY_STR( psz ) ) |
|---|
| | 216 | { |
|---|
| | 217 | fprintf( p_file, "\t\t\t<image>%s</image>\n", psz ); |
|---|
| | 218 | } |
|---|
| | 219 | free( psz ); |
|---|
| 213 | 220 | |
|---|
| 214 | 221 | xspfexportitem_end: |
|---|