Opened 10 years ago

Last modified 9 years ago

#47132 new submission

port submission: qarte

Reported by: RJVB (René Bertin) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: mkae (Marko Käning), kurthindenburg (Kurt Hindenburg)
Port: qarte

Description

qarte is a nice little interface that lists the videos currently available for replay (and download) on the Arte websites. It is based on PyKDE4 and uses rtmpdump for the actual downloading.

Attachments (3)

fix_unicode_omissions.diff (1.1 KB) - added by RJVB (René Bertin) 10 years ago.
Portfile (2.1 KB) - added by RJVB (René Bertin) 10 years ago.
fix_unicode_issues.diff (1.6 KB) - added by RJVB (René Bertin) 10 years ago.

Download all attachments as: .zip

Change History (10)

Changed 10 years ago by RJVB (René Bertin)

Attachment: fix_unicode_omissions.diff added

comment:1 Changed 10 years ago by RJVB (René Bertin)

The main functions work, but I'd need some assistance with unicode issues. For instance, when clicking on a video that has an e-acute (é) at position 95, I see the following error:

Traceback (most recent call last):
  File "/opt/local/share/qarte/ui_main.py", line 905, in selection_changed
    self.main.apl.show_pitch()
  File "/opt/local/share/qarte/artePlus.py", line 241, in show_pitch
    self.edit_summary(idx)
  File "/opt/local/share/qarte/artePlus.py", line 661, in edit_summary
    summary = self.videos[idx].summary.decode('utf-8', 'replace')
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 95: ordinal not in range(128)

In other words, I'm getting the iso-8859-1 encoding for 'é' (0xe9 = 233) . On Linux this apparently doesn't pose any problems. Does Python use a different default encoding on OS X (or under MacPorts)? The input string appears to be the same...

comment:2 Changed 10 years ago by mkae (Marko Käning)

Cc: mk@… added

Cc Me!

Changed 10 years ago by RJVB (René Bertin)

Attachment: Portfile added

Changed 10 years ago by RJVB (René Bertin)

Attachment: fix_unicode_issues.diff added

comment:3 Changed 10 years ago by RJVB (René Bertin)

It seems I found a solution or workaround for the unicode decoding issue mentioned above.

comment:4 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)

Cc: khindenburg@… added

Cc Me!

comment:5 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)

perhaps this should be in multimedia cat? Also where are you getting py27-pykde4 - I don't show it available.

comment:6 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)

https://trac.macports.org/ticket/47125 is the ticket for py-pykde4

comment:7 Changed 9 years ago by RJVB (René Bertin)

Interested users can fetch/track the new version from

https://github.com/RJVB/macstrop/tree/master/python/qarte

until this port gets committed.

Note: See TracTickets for help on using tickets.