MyEpisodes Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

HOWTO: add MyEpisodes to google calendar
Goto page Previous  1, 2, 3, 4, 5, 6  Next
 
Post new topic   Reply to topic    MyEpisodes Forum Index -> User Contributions
View previous topic :: View next topic  
Author Message
doc1881


Posts: 2

PostPosted: Wed Sep 15, 2010 5:36 am    Post subject: Reply with quote

I was about to say the same but I thought I'd give it another day.
Back to top
View user's profile Send private message
sug


Posts: 1

PostPosted: Tue Sep 21, 2010 9:04 am    Post subject: Reply with quote

...so ? Nobody else has a working link ?

Seems that the site has been cleared completely for sachenhofer...

I'm trying to make my own calendar, but it doesn't work... Crying or Very sad
Back to top
View user's profile Send private message
mazz0310


Posts: 31

PostPosted: Thu Sep 23, 2010 6:43 pm    Post subject: Reply with quote

Just sign up for a free webhost and host it. That's what I do. It's very simple, and works great.
Back to top
View user's profile Send private message
Poguy


Posts: 3

PostPosted: Fri Sep 24, 2010 10:21 am    Post subject: Reply with quote

Hello !

When I try to open the myepisodes2ical.php on my web hoster, i get this error :

Parse error: syntax error, unexpected T_STRING in /home/a3076210/public_html/TV_Shows/myepisodes2ical.php on line 2

Any ideas ?

Adding the url to Gcal, it seems to load the calendar but nothing shows up.
Back to top
View user's profile Send private message
mazz0310


Posts: 31

PostPosted: Sat Sep 25, 2010 4:12 am    Post subject: Reply with quote

Did you change file permissions on the cache folder to 777?
Back to top
View user's profile Send private message
Poguy


Posts: 3

PostPosted: Sat Sep 25, 2010 9:03 am    Post subject: Reply with quote

Yes I did Smile
Back to top
View user's profile Send private message
mazz0310


Posts: 31

PostPosted: Sat Sep 25, 2010 7:40 pm    Post subject: Reply with quote

Poguy wrote:
Yes I did Smile


Hm im not sire what you're missing then. You copied the 3 folders and the php file, added your username and RSS link, and change file permissions then t should work.

You used the. Zip from the 3rd or 4th page right? What about what site are you hosting it with?
Back to top
View user's profile Send private message
VortX


Posts: 8

PostPosted: Tue Sep 28, 2010 5:03 pm    Post subject: Reply with quote

Hi
I downloaded the code and tried to set it up, but I get the following error:

Code:

Notice: Undefined variable: errno in /www/zxq.net/v/o/r/vortx/htdocs/simplepie/simplepie.inc on line 6601

Notice: Undefined variable: errstr in /www/zxq.net/v/o/r/vortx/htdocs/simplepie/simplepie.inc on line 6601

Warning: fsockopen() has been disabled for security reasons in /www/zxq.net/v/o/r/vortx/htdocs/simplepie/simplepie.inc on line 6601

Notice: Undefined variable: errstr in /www/zxq.net/v/o/r/vortx/htdocs/simplepie/simplepie.inc on line 6604
fsockopen error:


I edited myepisodes2ical.php and changed this line:

Code:
$feed->set_feed_url('http://www.myepisodes.com/rss.php?feed=mylist&uid=VortX&pwdmd5=12b2d9664def256da7ddc49cb491899c');


Then, changed file permission of cache folder (and contents, just in case).

I try to access http://vortx.zxq.net/myepisodes2ical.php and get the error

Any help?

I'm using Zymic as a hosting provider
Back to top
View user's profile Send private message
mazz0310


Posts: 31

PostPosted: Tue Sep 28, 2010 7:43 pm    Post subject: Reply with quote

I'm going to give that website a shot and I'll let you know if it works for me or not.

That site isn't working for me. I found that to be a problem with a few sites. The one I'm currently using is www.mezoka.com

Or you can also use 000webhost.com

Let me know how it works out for you.
Back to top
View user's profile Send private message
VortX


Posts: 8

PostPosted: Wed Sep 29, 2010 9:07 am    Post subject: Reply with quote

thanks! mezoka is working
Back to top
View user's profile Send private message
mazz0310


Posts: 31

PostPosted: Wed Sep 29, 2010 6:11 pm    Post subject: Reply with quote

Awesome, I'm glad it worked
Back to top
View user's profile Send private message
gus85


Posts: 4

PostPosted: Thu Sep 30, 2010 2:49 am    Post subject: Reply with quote

namooth wrote:
How often are iCal subscriptions supposed to update? I've made changes on my shows in myepisodes and i don't see the changes in my calender even after 2 days. Is there a way to force a calender refresh or something?


I was having the same problem, what I did that worked was: I deleted the files created in the cache folder on my webhost.
Back to top
View user's profile Send private message
gus85


Posts: 4

PostPosted: Thu Sep 30, 2010 6:43 pm    Post subject: now I'm having problems with my half hour shows array Reply with quote

I've just added Shit My Dad Says to my episodes and to my half hour shows array, but it is still showing as an one hour show on my calendar...
Back to top
View user's profile Send private message
mazz0310


Posts: 31

PostPosted: Thu Sep 30, 2010 10:12 pm    Post subject: Re: now I'm having problems with my half hour shows array Reply with quote

gus85 wrote:
I've just added Shit My Dad Says to my episodes and to my half hour shows array, but it is still showing as an one hour show on my calendar...


It only updates like once a day.
Back to top
View user's profile Send private message
gus85


Posts: 4

PostPosted: Fri Oct 01, 2010 12:00 am    Post subject: Re: now I'm having problems with my half hour shows array Reply with quote

mazz0310 wrote:
gus85 wrote:
I've just added Shit My Dad Says to my episodes and to my half hour shows array, but it is still showing as an one hour show on my calendar...


It only updates like once a day.


I know, but if I added the show to my array before I added it to My Episodes, shouldn't it appear as half hour from the start?
Back to top
View user's profile Send private message
mazz0310


Posts: 31

PostPosted: Fri Oct 01, 2010 4:30 am    Post subject: Reply with quote

Ah I see what you're saying. I'm not sure, I'll have to look over mine and see if it works for me. You sure you have the title right?
Back to top
View user's profile Send private message
Mafteah


Posts: 1

PostPosted: Fri Oct 01, 2010 9:14 pm    Post subject: Reply with quote

Can someone share the link?

Thanks Smile
Back to top
View user's profile Send private message
gus85


Posts: 4

PostPosted: Fri Oct 01, 2010 9:29 pm    Post subject: Reply with quote

mazz0310 wrote:
Ah I see what you're saying. I'm not sure, I'll have to look over mine and see if it works for me. You sure you have the title right?


I'm sure, because after it was shown as an one hour show I copied the title directly from my calendar and pasted it on my array again, just to be sure...

But that's been over two days and still no change...



Let me ask you something that is not the case here, but I'm just curious, I was worried before I searched for Shit My Dad Says on my episodes, how special characters would work in the array, because on CBS they call it $h*! My Dad Says. Would it affect it in anyway? What about shows that have "&" on the title, does it make any difference?
Back to top
View user's profile Send private message
thesystem


Posts: 2

PostPosted: Mon Oct 04, 2010 7:55 am    Post subject: Reply with quote

With the new php script, the episodes are shown with the times they are broadcasted. I was wondering if it's possible to show the episodes as All-day events?
Back to top
View user's profile Send private message
thesystem


Posts: 2

PostPosted: Fri Oct 08, 2010 9:27 am    Post subject: Reply with quote

To answer my own question, this script shows the eps as all day events:

Code:

<?php

error_reporting(E_ALL);

// Parsing of RSS files   (http://www.simplepie.org)
require_once('./simplepie/simplepie.inc');
 
// Creating of iCal files (http://bennu.sourceforge.net/)
include('bennu/lib/bennu.inc.php');

$feed = new SimplePie();
$feed->set_feed_url('http://www.myepisodes.com/rss.php?feed=mylist&uid=USERNAME&pwdmd5=MD5-KEY');
$feed->enable_cache(true);
$feed->set_cache_location('./cache');
$feed->set_cache_duration(3600);
$feed->handle_content_type();

if ($feed->init()) {

  $ical = new iCalendar;
  $ical->add_property('X-WR-CALNAME', 'TV Shows');
//  $icalevent = new iCalendar_event;

  $i = 0;

 
 
  foreach ($feed->get_items() as $item) {
    $i++;

 // fix for Repetition problem
    $icalevent = new iCalendar_event;
 
   
    $title_data = parseTitle($item->get_title());
    $date1 = date("Ymd", strtotime($title_data[3]));
    $date2 = date("Ymd", strtotime($title_data[3]." + 1 day"));
    $date3 = date("Ymd\THis\Z", strtotime($title_data[3]));

   
    // Start-end date
    $icalevent->add_property('class', 'PUBLIC');
    $icalevent->add_property('sequence', $i);
   
    $icalevent->add_property('dtstart', $date1, array('value' => 'DATE'));
    $icalevent->add_property('dtend',   $date2, array('value' => 'DATE'));
    $icalevent->add_property('dtstamp', $date3);
//    $icalevent->add_property('description', $title_data[2]);
    $icalevent->add_property('description', $item->get_permalink());
   
    // Added the following text to the below line to include Episode Title in the Event Description (Summary)  >> ." - ".$title_data[2] <<
    $icalevent->add_property('summary', $title_data[0]." ".$title_data[1]." - ".$title_data[2]);

    // Fix for apostrophe problem
    $title_data[2] = str_replace("'", '', $title_data[2]);
//    $icalevent->add_property('description', $title_data[2]);

    // fix for UID problem
    $icalevent->add_property('uid', md5($date3.$title_data[0].$title_data[1])); 
    $ical->add_component($icalevent);
  }
  echo $ical->serialize();
  }
else {
  echo $feed->error();
}

function Return_Substrings($text, $sopener, $scloser) {
  $result = array();

  $noresult = substr_count($text, $sopener);
  $ncresult = substr_count($text, $scloser);

  if ($noresult < $ncresult)
    $nresult = $noresult;
  else
    $nresult = $ncresult;

  unset($noresult);
  unset($ncresult);

  for ($i=0;$i<$nresult;$i++) {
    $pos = strpos($text, $sopener) + strlen($sopener);
    $text = substr($text, $pos, strlen($text));
    $pos = strpos($text, $scloser);
    $result[] = substr($text, 0, $pos);
    $text = substr($text, $pos + strlen($scloser), strlen($text));
  }
  return $result;
}

function parseTitle($title) {
// format: [ Episode title ][ Episode Number ][ Episode Name ][ 15-May-2006 ]
  return Return_Substrings($title, "[ ", " ]");
}
?>
Back to top
View user's profile Send private message
mazz0310


Posts: 31

PostPosted: Sun Oct 10, 2010 3:52 pm    Post subject: Reply with quote

Personally I prefer them to show up as 30 min length, but I totally appreciate you sharing your modification.
Back to top
View user's profile Send private message
IIIIIIIIIIII


Posts: 30

PostPosted: Sat Oct 23, 2010 9:27 am    Post subject: Reply with quote

VortX wrote:
saxx's link (http://www.sachsenhofer.com/stuff/myepisodestoical.aspx?uid=YOURUSER&pwdmd5=YOURMD5PWD) is no longer working Sad


Not working on my end either. This was so useful while it worked.
Back to top
View user's profile Send private message
jamesking


Posts: 25

PostPosted: Mon Feb 28, 2011 7:28 pm    Post subject: Reply with quote

I am testing a version of this that uses Bennu 0.2 and SimplePie 1.2.

Hopefully this will be more futureproof. I've also put the permalink URL in to the iCal event's "URL" property. This seems more sensible than putting it in "location", but the event URL does not show up in google calendar, sadly. I'll try and find a better solution.
Back to top
View user's profile Send private message
mazz0310


Posts: 31

PostPosted: Tue Mar 01, 2011 3:43 am    Post subject: Reply with quote

Wow that's awesome news. I still literally use this daily...and other than the timezone thing it works absolutely perfectly for me and I still appreciate all the work done on V1.

Edit: I'm a CSC Major and consider myself pretty technological but unfortunately I've gone through all the code so far and couldn't figure out the timezone/how to write a new one Sad I'm better at programs than websites.
Back to top
View user's profile Send private message
jamesking


Posts: 25

PostPosted: Tue Mar 01, 2011 8:44 am    Post subject: Reply with quote

mazz0310 wrote:
Wow that's awesome news. I still literally use this daily...and other than the timezone thing it works absolutely perfectly for me and I still appreciate all the work done on V1.


Hi,

The new version is basically the same code (!) but with more up to date php classes. I am testing it for a month or so, just to check it doesn't break anything.

I've also now read and actually understood most of the code! So it's much easier for me to make modifications to how the output shows up in google calendar.

I'd like to get to the bottom of this time zone problem. There is a Time Zone ID property of an ical event which we could set, but I'd like to be sure it's easy to make it work for everyone.

Can you please tell me a few things to help me figure it out?

1. If you navigate in your web browser or an RSS reader to the URL of your RSS feed, Air Date and Air Time does it give for the first show in your list?

2. At http://www.myepisodes.com/cp.php , under "Regional settings", what time zone do you have, and what episode offset do you have?

3. If you go to the URL of your calendar (eg, http://www.jamesking.co.uk/myepisodes/myepisodes2ical.php ) you will see the episodes listed as iCal. What air date and air time show up here for the first episode?

4. Under Google Calendar, Calendar Settings, General, what country and current time zone is set?

5. What is your webhost (where the PHP script is running) and what country are they in (if you know!)

Thanks!

James
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    MyEpisodes Forum Index -> User Contributions All times are GMT + 1 Hour
Goto page Previous  1, 2, 3, 4, 5, 6  Next
Page 5 of 6

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

Main design by MW. Refitted to board by Hostile.