Opened 18 years ago

Closed 18 years ago

#1009 closed defect (fixed)

mythfilldatabase: lack of & interpretation.

Reported by: stgarf@… Owned by: Isaac Richards
Priority: minor Milestone: unknown
Component: mythtv Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

When running mythfilldatabase --import-icon-map iconmap.xml --update-icon-map One particular channel icon has an & character in it and mythfilldatabase escapes the & and the shell is interpreting it. GreyFoxx? and Beirdo say it should be \& or %26. I'm not sure either way, but here is the mythfilldatabase output:

mythtv@MythTV ~ $ mythfilldatabase --import-icon-map iconmap.xml --update-icon-map
2006-01-11 20:53:58.539 Using runtime prefix = /usr/local
2006-01-11 20:53:58.558 New DB connection, total: 1
2006-01-11 20:53:58.567 Enabling Settings Cache.
2006-01-11 20:53:58.567 Clearing Settings Cache.
Importing icon mapping from iconmap.xml...
2006-01-11 20:53:58.586 New DB connection, total: 2
2006-01-11 20:53:58.588 New DB connection, total: 3
2006-01-11 20:53:58.590 New DB connection, total: 4
2006-01-11 20:53:58.696 New DB connection, total: 5
2006-01-11 20:53:58.702 Updating icons for sourceid: 1
2006-01-11 20:53:58.708 Attempting to fetch icon with: wget --timestamping --directory-prefix=/home/mythtv/.mythtv/channels http://tvlistings2.zap2it.com/tms_network_logos/starz_kids&family.jpg
--20:53:58--  http://tvlistings2.zap2it.com/tms_network_logos/starz_kids
           => `/home/mythtv/.mythtv/channels/starz_kids'
Resolving tvlistings2.zap2it.com... sh: family.jpg: command not found
Error retrieving icon from 'http://tvlistings2.zap2it.com/tms_network_logos/starz_kids&family.jpg' to file '/home/mythtv/.mythtv/channels/starz_kids&family.jpg'
2006-01-11 20:53:58.720 Marking repeats.
206.18.98.202
Connecting to tvlistings2.zap2it.com|206.18.98.202|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
20:53:58 ERROR 404: Not Found.

2006-01-11 20:53:59.522     Found 0
2006-01-11 20:53:59.523 Unmarking new episode rebroadcast repeats.
2006-01-11 20:54:00.341     Found 0
2006-01-11 20:54:00.696
===============================================================
| Attempting to contact the master backend for rescheduling.  |
| If the master is not running, rescheduling will happen when |
| the master backend is restarted.                            |
===============================================================
2006-01-11 20:54:00.703 Connecting to backend server: 127.0.0.1:6543 (try 1 of 37)
2006-01-11 20:54:00.715 Using protocol version 22
2006-01-11 20:54:00.765 mythfilldatabase run complete.
mythtv@MythTV ~ $

Attachments (1)

quote_url.diff (766 bytes) - added by cpinkham 18 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 18 years ago by stgarf@…

Priority: majorminor
Summary: mythfilldatabase: lack on & interpretation.mythfilldatabase: lack off & interpretation.

comment:2 Changed 18 years ago by stgarf@…

Summary: mythfilldatabase: lack off & interpretation.mythfilldatabase: lack of & interpretation.

Changed 18 years ago by cpinkham

Attachment: quote_url.diff added

comment:3 Changed 18 years ago by cpinkham

Can you see if the attached patch works for you? It encloses the url in single quotes on the command line so the shell doesn't try to interpret the contents.

comment:4 Changed 18 years ago by cpinkham

Resolution: fixed
Status: newclosed

(In [8589]) Enclose the channel icon url in single quotes since some urls have bad characters like '&' in them. Closes #1009.

Note: See TracTickets for help on using tickets.