Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ruby-1.9.2-p180 :001 > x = NzbForge.search "community"
- => [{"ID"=>"10704", "name"=>"Community.S02E23.iTouch-MW", "searchname"=>"Community.S02E23.iTouch-MW", "totalpart"=>"22", "groupID"=>"2", "size"=>"161055019", "postdate"=>"2011-05-05 18:08:43", "adddate"=>"2011-05-05 18:46:26", "guid"=>"d9a7845a124a48b22fd8db1c7ccbf7dd", "fromname"=>"noone <noone@nowhere.com>", "completion"=>"100", "categoryID"=>"5050", "regexID"=>"166", "rageID"=>"22589", "seriesfull"=>"S02E23", "season"=>"S02", "episode"=>"E23", "tvtitle"=>"A Fist Full of Paintballs (1)", "tvairdate"=>"2011-05-05 00:00:00", "imdbID"=>nil, "musicinfoID"=>nil, "consoleinfoID"=>nil, "anidbID"=>nil, "reqID"=>nil, "grabs"=>"0", "comments"=>"0", "passwordstatus"=>"0", "rarinnerfilecount"=>"1", "haspreview"=>"0", "category_name"=>"TV > Other", "category_ids"=>"5000,5050", "group_name"=>"alt.binaries.multimedia", "nfoID"=>"2041", "reID"=>nil, "categoryParentID"=>"5000", "_totalrows"=>"3"}, {"ID"=>"10701", "name"=>"Community.S02E23.720p.HDTV.X264-DIMENSION", "searchname"=>"Community.S02E23.720p.HDTV.X264-DIMENSION", "totalpart"=>"22", "groupID"=>"2", "size"=>"670925331", "postdate"=>"2011-05-05 17:33:53", "adddate"=>"2011-05-05 18:46:26", "guid"=>"03e2f11eaf0ab0539d032aba1605ee7d", "fromname"=>"teevee@4u.net (teevee)", "completion"=>"100", "categoryID"=>"5040", "regexID"=>"552", "rageID"=>"22589", "seriesfull"=>"S02E23", "season"=>"S02", "episode"=>"E23", "tvtitle"=>"A Fist Full of Paintballs (1)", "tvairdate"=>"2011-05-05 00:00:00", "imdbID"=>nil, "musicinfoID"=>nil, "consoleinfoID"=>nil, "anidbID"=>nil, "reqID"=>nil, "grabs"=>"0", "comments"=>"0", "passwordstatus"=>"0", "rarinnerfilecount"=>"1", "haspreview"=>"0", "category_name"=>"TV > HD", "category_ids"=>"5000,5040", "group_name"=>"alt.binaries.multimedia", "nfoID"=>"2038", "reID"=>"10701", "categoryParentID"=>"5000"}, {"ID"=>"10700", "name"=>"Community.S02E23.HDTV.XviD-LOL", "searchname"=>"Community.S02E23.HDTV.XviD-LOL", "totalpart"=>"22", "groupID"=>"2", "size"=>"209803306", "postdate"=>"2011-05-05 17:31:21", "adddate"=>"2011-05-05 18:46:26", "guid"=>"5a48d24a8d106f297f3b53341dcd8681", "fromname"=>"teevee@4u.net (teevee)", "completion"=>"100", "categoryID"=>"5030", "regexID"=>"552", "rageID"=>"22589", "seriesfull"=>"S02E23", "season"=>"S02", "episode"=>"E23", "tvtitle"=>"A Fist Full of Paintballs (1)", "tvairdate"=>"2011-05-05 00:00:00", "imdbID"=>nil, "musicinfoID"=>nil, "consoleinfoID"=>nil, "anidbID"=>nil, "reqID"=>nil, "grabs"=>"0", "comments"=>"0", "passwordstatus"=>"0", "rarinnerfilecount"=>"1", "haspreview"=>"0", "category_name"=>"TV > SD", "category_ids"=>"5000,5030", "group_name"=>"alt.binaries.multimedia", "nfoID"=>nil, "reID"=>"10700", "categoryParentID"=>"5000"}]
- ruby-1.9.2-p180 :002 > x.size
- => 3
- ruby-1.9.2-p180 :003 > x.first
- => {"ID"=>"10704", "name"=>"Community.S02E23.iTouch-MW", "searchname"=>"Community.S02E23.iTouch-MW", "totalpart"=>"22", "groupID"=>"2", "size"=>"161055019", "postdate"=>"2011-05-05 18:08:43", "adddate"=>"2011-05-05 18:46:26", "guid"=>"d9a7845a124a48b22fd8db1c7ccbf7dd", "fromname"=>"noone <noone@nowhere.com>", "completion"=>"100", "categoryID"=>"5050", "regexID"=>"166", "rageID"=>"22589", "seriesfull"=>"S02E23", "season"=>"S02", "episode"=>"E23", "tvtitle"=>"A Fist Full of Paintballs (1)", "tvairdate"=>"2011-05-05 00:00:00", "imdbID"=>nil, "musicinfoID"=>nil, "consoleinfoID"=>nil, "anidbID"=>nil, "reqID"=>nil, "grabs"=>"0", "comments"=>"0", "passwordstatus"=>"0", "rarinnerfilecount"=>"1", "haspreview"=>"0", "category_name"=>"TV > Other", "category_ids"=>"5000,5050", "group_name"=>"alt.binaries.multimedia", "nfoID"=>"2041", "reID"=>nil, "categoryParentID"=>"5000", "_totalrows"=>"3"}
- ruby-1.9.2-p180 :004 > f = x.first
- => {"ID"=>"10704", "name"=>"Community.S02E23.iTouch-MW", "searchname"=>"Community.S02E23.iTouch-MW", "totalpart"=>"22", "groupID"=>"2", "size"=>"161055019", "postdate"=>"2011-05-05 18:08:43", "adddate"=>"2011-05-05 18:46:26", "guid"=>"d9a7845a124a48b22fd8db1c7ccbf7dd", "fromname"=>"noone <noone@nowhere.com>", "completion"=>"100", "categoryID"=>"5050", "regexID"=>"166", "rageID"=>"22589", "seriesfull"=>"S02E23", "season"=>"S02", "episode"=>"E23", "tvtitle"=>"A Fist Full of Paintballs (1)", "tvairdate"=>"2011-05-05 00:00:00", "imdbID"=>nil, "musicinfoID"=>nil, "consoleinfoID"=>nil, "anidbID"=>nil, "reqID"=>nil, "grabs"=>"0", "comments"=>"0", "passwordstatus"=>"0", "rarinnerfilecount"=>"1", "haspreview"=>"0", "category_name"=>"TV > Other", "category_ids"=>"5000,5050", "group_name"=>"alt.binaries.multimedia", "nfoID"=>"2041", "reID"=>nil, "categoryParentID"=>"5000", "_totalrows"=>"3"}
- ruby-1.9.2-p180 :005 > f.each do |k,v|
- ruby-1.9.2-p180 :006 > puts "#{k} => #{v}\n"
- ruby-1.9.2-p180 :007?> end
- ID => 10704
- name => Community.S02E23.iTouch-MW
- searchname => Community.S02E23.iTouch-MW
- totalpart => 22
- groupID => 2
- size => 161055019
- postdate => 2011-05-05 18:08:43
- adddate => 2011-05-05 18:46:26
- guid => d9a7845a124a48b22fd8db1c7ccbf7dd
- fromname => noone <noone@nowhere.com>
- completion => 100
- categoryID => 5050
- regexID => 166
- rageID => 22589
- seriesfull => S02E23
- season => S02
- episode => E23
- tvtitle => A Fist Full of Paintballs (1)
- tvairdate => 2011-05-05 00:00:00
- imdbID =>
- musicinfoID =>
- consoleinfoID =>
- anidbID =>
- reqID =>
- grabs => 0
- comments => 0
- passwordstatus => 0
- rarinnerfilecount => 1
- haspreview => 0
- category_name => TV > Other
- category_ids => 5000,5050
- group_name => alt.binaries.multimedia
- nfoID => 2041
- reID =>
- categoryParentID => 5000
- _totalrows => 3
- => {"ID"=>"10704", "name"=>"Community.S02E23.iTouch-MW", "searchname"=>"Community.S02E23.iTouch-MW", "totalpart"=>"22", "groupID"=>"2", "size"=>"161055019", "postdate"=>"2011-05-05 18:08:43", "adddate"=>"2011-05-05 18:46:26", "guid"=>"d9a7845a124a48b22fd8db1c7ccbf7dd", "fromname"=>"noone <noone@nowhere.com>", "completion"=>"100", "categoryID"=>"5050", "regexID"=>"166", "rageID"=>"22589", "seriesfull"=>"S02E23", "season"=>"S02", "episode"=>"E23", "tvtitle"=>"A Fist Full of Paintballs (1)", "tvairdate"=>"2011-05-05 00:00:00", "imdbID"=>nil, "musicinfoID"=>nil, "consoleinfoID"=>nil, "anidbID"=>nil, "reqID"=>nil, "grabs"=>"0", "comments"=>"0", "passwordstatus"=>"0", "rarinnerfilecount"=>"1", "haspreview"=>"0", "category_name"=>"TV > Other", "category_ids"=>"5000,5050", "group_name"=>"alt.binaries.multimedia", "nfoID"=>"2041", "reID"=>nil, "categoryParentID"=>"5000", "_totalrows"=>"3"}
- ruby-1.9.2-p180 :008 >
Add Comment
Please, Sign In to add comment