gnowledge/gstudio — pull request #711 by supriyasawant (2014-08-26 14:16:09+00:00)
Title: Pandora Videos redundancy resolved 

Resolve redundancy in pandora videos display.
Please run following commands on shell for deleting existing pandora_videos otherwise current modification will not get reflect.

1. pandora_video_st=collection.Node.one({'$and':[{'name':'Pandora_video'},{'_type':'GSystemType'}]})
2. source_id_at=collection.Node.one({'$and':[{'name':'source_id'},{'_type':'AttributeType'}]})
3. member_set=collection.Node.find({'$and':[{'member_of': {'$all': [ObjectId(pandora_video_st._id)]}}, {'_type':'File'}]})
4. attribute_set=collection.Node.find({'$and':[{'_type':'GAttribute'},{'attribute_type.$id':source_id_at._id}]})
5. for each in member_set:
each.delete()
6. for each in attribute_set:
each.delete()

After executing above commands after 30 minutes cron-job will get all pandora_videos from wetube.