Closed (fixed)
Project:
Station
Version:
5.x-2.x-dev
Component:
Schedule
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
16 May 2007 at 06:38 UTC
Updated:
15 Nov 2007 at 17:51 UTC
Jump to comment: Most recent file
Attached is a quick patch to allow station admins to add a third stream. I also needed to use labels other than 'High' and 'Low' so I added variables and passed them onto theme_station_block_current_program for display. This was done against the latest 5-0 branch version.
| Comment | File | Size | Author |
|---|---|---|---|
| #22 | station_schedule_144430_4.patch | 17.15 KB | drewish |
| #21 | station_schedule_144430_3.patch | 16.45 KB | drewish |
| #20 | station_schedule_144430_2.patch | 16.45 KB | drewish |
| #19 | station_144430_2.patch | 8.74 KB | drewish |
| #17 | station_schedule_144430_1.patch | 14.18 KB | drewish |
Comments
Comment #1
thumb commentedI was hoping to get some feedback on this. Is it useful? If so, how could the implementation be improved. I'm hoping that this might be roled into HEAD.
Comment #2
thumb commentedThis patch would also take care of this patch
Comment #3
drewish commentedsorry to have ignored this issue.
i think that should be changed but i'd prefer to move from having a predetermined number of webstreams to a model where the admin can determine how many they need. it would also be nice to be able to provide multiple URLs for the same stream (in case you've got two separate machines providing the same high and low bandwidth streams) and have them appear in an .m3u file for each stream...
so in summary, yes to the change but it should also work for people with 4, 5, or 6 streams.
Comment #4
thumb commentedMakes sense. I was thinking streams should be stored in an array anyway. I'll convert the predetermined number of streams to an array to allow unlimited.
Comment #5
drewish commentedokay, here's a start on what i had in mind
Comment #6
thumb commentedHey drewish, at first glance it looks great. I'll back out my changes on my dev instance and give this a try. Thanks.
Comment #7
thumb commentedOkay, I upgraded to Station 5.x-1.x-dev, applied the patch, and ran update.php. Two issues I'm having are
1. Couple of minor syntax errors in station.module, closing parenthesis added in wrong place (see lines 274 and 281).
2. When adding a third web stream, it appears to be added (shows up in block), but does not display in admin form.
3. Stream Urls aren't linked in the block, defaults to drupal root Url.
I'll poke around and test more soon...
Comment #8
drewish commentednow that HEAD is open again, and schedule are now nodes, i think it'd make sense to store this value in the station_schedule table rather than in the variables table. that way each schedule has it's own streams.
Comment #9
drewish commentedstill needs lots of work...
Comment #10
drewish commentedrerolled... i kind of think this should happen after: http://drupal.org/node/169409
Comment #11
joachim commentedDoes this allow just one stream too?
If so, then http://drupal.org/node/131154 can maybe be marked as a duplicate.
Comment #12
drewish commentedyeah, http://drupal.org/node/131154 looks like a duplicate
Comment #13
drewish commentedi spent a few hours on this today but this still needs work.
each schedule node now has an unscheduled message and an array of multiple streams. clicking the listen link sends you to a m3u file which plays correctly.
the views stuff needs more cleanup. there's unused stuff in there. also need to figure out how to get a now playing block working for remote archives... maybe that'll just something that should be won't fix.
Comment #14
drewish commentedmoved the unscheduled message changes over to: http://drupal.org/node/188235
pulled out other changes that should go into their own issues.
Comment #15
drewish commentedsome code clean up went to: http://drupal.org/node/188242
schedule node fixes to: http://drupal.org/node/188249
views clean up to: http://drupal.org/node/118390
Comment #16
drewish commentedre-roll to apply cleanly with all the other stuff applied.
Comment #17
drewish commentedre-roll... that last patch dropped some stuff.
Comment #18
drewish commentedactually needs work... the now playing block should use the streams...
Comment #19
drewish commentedDropped the default view... got the streams displayed correctly on the block. It's pretty close now.
Comment #20
drewish commentedwhoops, that was an old copy of the patch.
Comment #21
drewish commentedfound one bug in the remote block, the listen links were broken.
Comment #22
drewish commentedadding a station_ored_list() list for formatting the streams. it's looking pretty good so i'm going to go ahead and commit this.
Comment #23
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.