Commit 5596e5d3 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Add serializable option to IRIS constructor (does not save libxml objects)

parent 71a6127b
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ sub new {
		iris_base => $opt{iris_base}
		  // 'http://iris.noncd.db.de/iris-tts/timetable',
		lookahead => $opt{lookahead} // ( 4 * 60 ),
		serializable => $opt{serializable},
		station      => $opt{station},
		user_agent   => $ua,
	};
@@ -210,7 +211,9 @@ sub get_realtime {
			next;
		}

		if ( not $self->{serializable} ) {
			$result->add_realtime($s);
		}

		for my $e_m (@e_ms) {
			my $type  = $e_m->getAttribute('t');