home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2012 January / maximum-cd-2012-01.iso / DiscContents / digsby_setup.exe / lib / plugins / facebook / notifications.yaml < prev    next >
Encoding:
Text File  |  2011-02-02  |  1.6 KB  |  42 lines

  1. - facebook_alert:
  2.     description: !_ 'Facebook Alert'
  3.     header: "${title}"
  4.     minor: '${msg}'
  5.     icon: 'skin:serviceicons.facebook'
  6.     max_lines: 6
  7.     default:
  8.       reaction: ['Popup']
  9.  
  10. - facebook_notifications:
  11.     description: !_ 'Facebook Notification'
  12.     header: !_ 'Facebook Notification'
  13.     minor: ${notification['title_text']}
  14.     icon: 'skin:serviceicons.facebook'
  15.     pages: 'notifications'
  16.     max_lines: 5
  17.     update: paged
  18.     default:
  19.       reaction: ['Popup']
  20.  
  21. - facebook_newsfeed:
  22.     description: !_ 'Facebook Newsfeed'
  23.     header: |-
  24.         ${(profiles[int(post['actor_id'])].name + u' \xbb ' + profiles[int(post['target_id'])].name
  25.           if ('source_id' in post and 'actor_id' in post and 'target_id' in post and post.target_id and post.source_id and post.actor_id and int(post.target_id) != int(post.actor_id))
  26.           else profiles[int(post['actor_id'])].name)}
  27.     minor: |-
  28.         ${('message' in post and post.message.strip()
  29.           or ('attachment' in post and post.attachment and
  30.               (post.attachment.get('name', '').strip() or
  31.                post.attachment.get('caption', '').strip() or
  32.                (post.attachment.get('description') and
  33.                 scrape_clean(post.attachment.get('description', '').strip()) or
  34.                 (post.attachment.get('media') and any(media.get('type') == 'photo' for media in post.attachment.get('media')) and 'Uploaded photos')
  35.                 ) or '')))}
  36.     icon: 'skin:serviceicons.facebook'
  37.     pages: 'posts'
  38.     max_lines: 5
  39.     update: paged
  40.     default:
  41.       reaction: ['Popup']
  42.