public
Fork of maddox/pyrot
Description: Your friendly neighborhood nzb downloader
Clone URL: git://github.com/mschrag/pyrot.git
Search Repo:
got tv episode view in line with movies
maddox (author)
Thu Apr 24 19:22:11 -0700 2008
commit  cef6a58378e6782df403fc20b7a3e578e1181459
tree    14c2f96156455c8ebd643b764014b1da4569b886
parent  b495933898851675ef263b1792526cfd1b6db71c
...
173
174
175
176
 
177
178
 
179
180
181
...
173
174
175
 
176
177
 
178
179
180
181
0
@@ -173,9 +173,9 @@ module ApplicationHelper
0
 
0
     case found_pass
0
     when nil
0
- link_to 'Create Season Pass', new_season_pass_path(:title => series.title)
0
+ link_to 'Season Pass', new_season_pass_path(:title => series.title)
0
     else
0
- link_to 'Edit Season Pass', edit_season_pass_path(found_pass)
0
+ link_to 'Season Pass', edit_season_pass_path(found_pass)
0
     end
0
 
0
   end
...
1
2
 
3
4
5
6
7
8
9
10
 
11
12
13
14
15
16
 
 
17
 
 
 
 
 
 
18
19
20
 
21
 
22
23
24
25
26
...
38
39
40
41
42
43
44
45
46
 
47
48
49
50
51
52
53
54
 
55
56
57
58
59
60
...
1
 
2
3
4
 
 
 
 
 
 
5
6
 
7
 
 
 
8
9
10
11
12
13
14
15
16
17
 
18
19
20
21
22
 
23
24
25
...
37
38
39
 
 
 
 
40
 
41
42
 
 
 
 
 
 
 
43
44
45
46
 
 
47
0
@@ -1,26 +1,25 @@
0
 <div title="<%= nzb.contentable.series.title %>" id="details_<%= dom_id(nzb) %>" class="panel info_panel" selected="true">
0
- <img height="160" width="109" style="float: left; margin: 0 10px;" src="<%=nzb.contentable.season_url%>"/>
0
+ <img class="poster" src="<%=nzb.contentable.season_url%>"/>
0
 
0
   <dl class="meta narrow">
0
- <dt>category</dt>
0
- <dd><%= nzb.category %></dd>
0
- </dl>
0
-
0
- <dl class="meta narrow">
0
- <dt>size</dt>
0
+ <dt>Size</dt>
0
     <dd><%= nzb.size_in_bytes.to_i.bytes / 1024 /1024 %> MB</dd>
0
- </dl>
0
 
0
- <dl class="meta narrow">
0
- <dt>post date</dt>
0
- <dd><%= time_ago_in_words(nzb.pub_date) %> ago</dd>
0
+ <dt>Posted</dt>
0
+ <dd><%= time_ago_in_words_short(nzb.pub_date) %> ago</dd>
0
   </dl>
0
+
0
+ <ul class="meta_list_single narrow">
0
+ <li><%= link_to "Download", downloads_path(:group => "TV", :url => "http://v3.newzbin.com/browse/post/#{nzb.newzbin_id}/", :title => nzb.contentable.nzb_title ), :method => :post%></li>
0
+ </ul>
0
+
0
+ <br class="separator"/>
0
   
0
- <% unless nzb.contentable.description.blank? -%>
0
   <div class="meta">
0
+ <% unless nzb.contentable.description.blank? -%>
0
     <strong><%= nzb.contentable.description %></strong>
0
+ <% end -%>
0
   </div>
0
- <% end -%>
0
   
0
   <dl class="meta">
0
     <dt>Season</dt>
0
@@ -38,23 +37,11 @@
0
     <% end -%>
0
     </dl>
0
     <% end -%>
0
-
0
- <ul class="meta_list_single">
0
- <li><%= link_to "Download", downloads_path(:group => "TV", :url => "http://v3.newzbin.com/browse/post/#{nzb.newzbin_id}/", :title => nzb.contentable.nzb_title ), :method => :post%></li>
0
- </ul>
0
 
0
- <ul class="meta_list_single">
0
+ <ul id = "download_links" class="segmented">
0
       <li><a href="<%= series_episodes_path(nzb.contentable.series) %>">More Episodes</a></li>
0
- </ul>
0
-
0
- <ul class="meta_list_single">
0
- <li><a href="<%= nzb.info_url %>" target="_blank">More Info</a></li>
0
- </ul>
0
-
0
- <ul class="meta_list_single">
0
+ <li><%= determine_season_pass_link(nzb.contentable.series)%></li>
0
       <li><a href="mailto:?subject=<%= nzb.contentable.title %>&body=http://v3.newzbin.com/browse/post/<%= nzb.newzbin_id %>" target="_blank">Share</a></li>
0
     </ul>
0
 
0
-
0
-
0
 </div>
...
24
25
26
27
28
29
30
 
 
 
 
 
 
31
32
33
...
24
25
26
 
 
 
 
27
28
29
30
31
32
33
34
35
0
@@ -24,10 +24,12 @@ ActiveRecord::Schema.define(:version => 6) do
0
 
0
   create_table "season_passes", :force => true do |t|
0
     t.string "title"
0
- t.integer "season", :null => false
0
- t.integer "next_episode", :null => false
0
- t.integer "on_hiatus", :default => 0
0
- t.boolean "hd", :default => true
0
+ t.integer "season", :null => false
0
+ t.integer "next_episode", :null => false
0
+ t.integer "on_hiatus", :default => 0
0
+ t.boolean "hd", :default => true
0
+ t.boolean "ipod_version", :default => false
0
+ t.integer "next_ipod_episode"
0
   end
0
 
0
   create_table "watchfors", :force => true do |t|

Comments

    No one has commented yet.