Promoted pypo to top level because it isnt 3rd party.

Removed the portage stuff since it is way outdated.
This commit is contained in:
Paul Baranowski 2010-12-02 15:30:40 -05:00
parent 4300fd8d36
commit 51a1fde9ee
82 changed files with 0 additions and 6013 deletions

View file

@ -0,0 +1,28 @@
########################################
# call pypo api gateway
########################################
def notify(m)
# print('user_id: #{!user_id}')
# print('playlist_id: #{!playlist_id}')
# print('transmission_id: #{!transmission_id}')
# print('playlist_type: #{!playlist_type}')
if !playlist_type=='5' then
print('livesession')
system("./notify.sh --playing --playlist-type=#{!playlist_type} --transmission-id=#{!transmission_id} --export-source=scheduler")
end
if !playlist_type=='6' then
print('couchcaster')
system("./notify.sh --playing --playlist-type=#{!playlist_type} --transmission-id=#{!transmission_id} --export-source=scheduler")
end
if !playlist_type=='0' or !playlist_type=='1' or !playlist_type=='2' or !playlist_type=='3' or !playlist_type=='4' then
print('include_notify.liq: notify on playlist')
#system("./notify.sh --playing --playlist-type=#{!playlist_type} --media-id=#{m['media_id']} --export-source=#{m['export_source']}")
system("./notify.sh --data='#{!pypo_data}' --media-id=#{m['media_id']}")
end
end