Skip to content
This repository
Browse code

Oops, missed part of gip::Programme::radio

  • Loading branch information...
commit 705df81bd55f3c7a925c01d0ed4d490e11639a82 1 parent e4b6e60
James Laver authored

Showing 2 changed files with 81 additions and 81 deletions. Show diff stats Hide diff stats

  1. +81 0 lib/gip/Programme/radio.pm
  2. +0 81 main.pl
81 lib/gip/Programme/radio.pm
... ... @@ -1,3 +1,84 @@
  1 +package Programme::radio;
  2 +
  3 +use Env qw[@PATH];
  4 +use Fcntl;
  5 +use File::Copy;
  6 +use File::Path;
  7 +use File::stat;
  8 +use HTML::Entities;
  9 +use HTTP::Cookies;
  10 +use HTTP::Headers;
  11 +use IO::Seekable;
  12 +use IO::Socket;
  13 +use LWP::ConnCache;
  14 +use LWP::UserAgent;
  15 +use POSIX qw(mkfifo);
  16 +use strict;
  17 +use Time::Local;
  18 +use URI;
  19 +
  20 +# Inherit from Programme class
  21 +use base 'Programme::bbciplayer';
  22 +
  23 +# Class vars
  24 +sub index_min { return 10001 }
  25 +sub index_max { return 19999 };
  26 +sub channels {
  27 + return {
  28 + 'bbc_1xtra' => 'BBC 1Xtra',
  29 + 'bbc_radio_one' => 'BBC Radio 1',
  30 + 'bbc_radio_two' => 'BBC Radio 2',
  31 + 'bbc_radio_three' => 'BBC Radio 3',
  32 + 'bbc_radio_four' => 'BBC Radio 4',
  33 + 'bbc_radio_five_live' => 'BBC Radio 5 live',
  34 + 'bbc_radio_five_live_sports_extra' => 'BBC 5 live Sports Extra',
  35 + 'bbc_6music' => 'BBC 6 Music',
  36 + 'bbc_7' => 'BBC 7',
  37 + 'bbc_asian_network' => 'BBC Asian Network',
  38 + 'bbc_radio_foyle' => 'BBC Radio Foyle',
  39 + 'bbc_radio_scotland' => 'BBC Radio Scotland',
  40 + 'bbc_radio_nan_gaidheal' => 'BBC Radio Nan Gaidheal',
  41 + 'bbc_radio_ulster' => 'BBC Radio Ulster',
  42 + 'bbc_radio_wales' => 'BBC Radio Wales',
  43 + 'bbc_radio_cymru' => 'BBC Radio Cymru',
  44 + 'bbc_world_service' => 'BBC World Service',
  45 + 'bbc_radio_cumbria' => 'BBC Cumbria',
  46 + 'bbc_radio_newcastle' => 'BBC Newcastle',
  47 + 'bbc_tees' => 'BBC Tees',
  48 + 'bbc_radio_lancashire' => 'BBC Lancashire',
  49 + 'bbc_radio_merseyside' => 'BBC Merseyside',
  50 + 'bbc_radio_manchester' => 'BBC Manchester',
  51 + 'bbc_radio_leeds' => 'BBC Leeds',
  52 + 'bbc_radio_sheffield' => 'BBC Sheffield',
  53 + 'bbc_radio_york' => 'BBC York',
  54 + 'bbc_radio_humberside' => 'BBC Humberside',
  55 + 'bbc_radio_lincolnshire' => 'BBC Lincolnshire',
  56 + 'bbc_radio_nottingham' => 'BBC Nottingham',
  57 + 'bbc_radio_leicester' => 'BBC Leicester',
  58 + 'bbc_radio_derby' => 'BBC Derby',
  59 + 'bbc_radio_stoke' => 'BBC Stoke',
  60 + 'bbc_radio_shropshire' => 'BBC Shropshire',
  61 + 'bbc_wm' => 'BBC WM',
  62 + 'bbc_radio_coventry_warwickshire' => 'BBC Coventry & Warwickshire',
  63 + 'bbc_radio_hereford_worcester' => 'BBC Hereford & Worcester',
  64 + 'bbc_radio_northampton' => 'BBC Northampton',
  65 + 'bbc_three_counties_radio' => 'BBC Three Counties',
  66 + 'bbc_radio_cambridge' => 'BBC Cambridgeshire',
  67 + 'bbc_radio_norfolk' => 'BBC Norfolk',
  68 + 'bbc_radio_suffolk' => 'BBC Suffolk',
  69 + 'bbc_radio_essex' => 'BBC Essex',
  70 + 'bbc_london' => 'BBC London',
  71 + 'bbc_radio_kent' => 'BBC Kent',
  72 + 'bbc_radio_surrey' => 'BBC Surrey',
  73 + 'bbc_radio_sussex' => 'BBC Sussex',
  74 + 'bbc_radio_oxford' => 'BBC Oxford',
  75 + 'bbc_radio_berkshire' => 'BBC Berkshire',
  76 + 'bbc_radio_solent' => 'BBC Solent',
  77 + 'bbc_radio_gloucestershire' => 'BBC Gloucestershire',
  78 + 'bbc_radio_wiltshire' => 'BBC Wiltshire',
  79 + 'bbc_radio_bristol' => 'BBC Bristol',
  80 + 'bbc_radio_somerset_sound' => 'BBC Somerset',
  81 + 'bbc_radio_devon' => 'BBC Devon',
1 82 '1xtra/programmes/schedules' => 'BBC 1Xtra',
2 83 'radio1/programmes/schedules/england' => 'BBC Radio 1 England',
3 84 'radio1/programmes/schedules/northernireland'=> 'BBC Radio 1 Northern Ireland',
81 main.pl
@@ -2964,87 +2964,6 @@ sub regex_numbers {
2964 2964
2965 2965
2966 2966 ################### Radio class #################
2967   -package Programme::radio;
2968   -
2969   -use Env qw[@PATH];
2970   -use Fcntl;
2971   -use File::Copy;
2972   -use File::Path;
2973   -use File::stat;
2974   -use HTML::Entities;
2975   -use HTTP::Cookies;
2976   -use HTTP::Headers;
2977   -use IO::Seekable;
2978   -use IO::Socket;
2979   -use LWP::ConnCache;
2980   -use LWP::UserAgent;
2981   -use POSIX qw(mkfifo);
2982   -use strict;
2983   -use Time::Local;
2984   -use URI;
2985   -
2986   -# Inherit from Programme class
2987   -use base 'Programme::bbciplayer';
2988   -
2989   -# Class vars
2990   -sub index_min { return 10001 }
2991   -sub index_max { return 19999 };
2992   -sub channels {
2993   - return {
2994   - 'bbc_1xtra' => 'BBC 1Xtra',
2995   - 'bbc_radio_one' => 'BBC Radio 1',
2996   - 'bbc_radio_two' => 'BBC Radio 2',
2997   - 'bbc_radio_three' => 'BBC Radio 3',
2998   - 'bbc_radio_four' => 'BBC Radio 4',
2999   - 'bbc_radio_five_live' => 'BBC Radio 5 live',
3000   - 'bbc_radio_five_live_sports_extra' => 'BBC 5 live Sports Extra',
3001   - 'bbc_6music' => 'BBC 6 Music',
3002   - 'bbc_7' => 'BBC 7',
3003   - 'bbc_asian_network' => 'BBC Asian Network',
3004   - 'bbc_radio_foyle' => 'BBC Radio Foyle',
3005   - 'bbc_radio_scotland' => 'BBC Radio Scotland',
3006   - 'bbc_radio_nan_gaidheal' => 'BBC Radio Nan Gaidheal',
3007   - 'bbc_radio_ulster' => 'BBC Radio Ulster',
3008   - 'bbc_radio_wales' => 'BBC Radio Wales',
3009   - 'bbc_radio_cymru' => 'BBC Radio Cymru',
3010   - 'bbc_world_service' => 'BBC World Service',
3011   - 'bbc_radio_cumbria' => 'BBC Cumbria',
3012   - 'bbc_radio_newcastle' => 'BBC Newcastle',
3013   - 'bbc_tees' => 'BBC Tees',
3014   - 'bbc_radio_lancashire' => 'BBC Lancashire',
3015   - 'bbc_radio_merseyside' => 'BBC Merseyside',
3016   - 'bbc_radio_manchester' => 'BBC Manchester',
3017   - 'bbc_radio_leeds' => 'BBC Leeds',
3018   - 'bbc_radio_sheffield' => 'BBC Sheffield',
3019   - 'bbc_radio_york' => 'BBC York',
3020   - 'bbc_radio_humberside' => 'BBC Humberside',
3021   - 'bbc_radio_lincolnshire' => 'BBC Lincolnshire',
3022   - 'bbc_radio_nottingham' => 'BBC Nottingham',
3023   - 'bbc_radio_leicester' => 'BBC Leicester',
3024   - 'bbc_radio_derby' => 'BBC Derby',
3025   - 'bbc_radio_stoke' => 'BBC Stoke',
3026   - 'bbc_radio_shropshire' => 'BBC Shropshire',
3027   - 'bbc_wm' => 'BBC WM',
3028   - 'bbc_radio_coventry_warwickshire' => 'BBC Coventry & Warwickshire',
3029   - 'bbc_radio_hereford_worcester' => 'BBC Hereford & Worcester',
3030   - 'bbc_radio_northampton' => 'BBC Northampton',
3031   - 'bbc_three_counties_radio' => 'BBC Three Counties',
3032   - 'bbc_radio_cambridge' => 'BBC Cambridgeshire',
3033   - 'bbc_radio_norfolk' => 'BBC Norfolk',
3034   - 'bbc_radio_suffolk' => 'BBC Suffolk',
3035   - 'bbc_radio_essex' => 'BBC Essex',
3036   - 'bbc_london' => 'BBC London',
3037   - 'bbc_radio_kent' => 'BBC Kent',
3038   - 'bbc_radio_surrey' => 'BBC Surrey',
3039   - 'bbc_radio_sussex' => 'BBC Sussex',
3040   - 'bbc_radio_oxford' => 'BBC Oxford',
3041   - 'bbc_radio_berkshire' => 'BBC Berkshire',
3042   - 'bbc_radio_solent' => 'BBC Solent',
3043   - 'bbc_radio_gloucestershire' => 'BBC Gloucestershire',
3044   - 'bbc_radio_wiltshire' => 'BBC Wiltshire',
3045   - 'bbc_radio_bristol' => 'BBC Bristol',
3046   - 'bbc_radio_somerset_sound' => 'BBC Somerset',
3047   - 'bbc_radio_devon' => 'BBC Devon',
3048 2967
3049 2968
3050 2969 ################### Streamer::rtmp class #################

0 comments on commit 705df81

Please sign in to comment.
Something went wrong with that request. Please try again.