Method (1, 2, 3, 4) for programming a recording of a programme by a digital television set-top box, the digital television set top box having a service plan including a plurality of services, the programme to be recorded being broadcast on a first service of said plurality, the digital television set-top box knowing the first service, an identifier of the programme to be recorded and a theoretical start time of the programme to be recorded, the method comprises the following steps: - if the digital television set-top box receives a first standardised table of the first service, the first standardised table comprising at each instant a first data frame relating to a first programme being broadcast on the first service and a second data frame relating to a second programme broadcast on the first service directly after the first programme, each data frame relating to a programme comprising an identifier of said programme, the digital television set-top box goes into a first operating mode in which it triggers the recording of the programme to be recorded according to a detection of the identify of said programme in the first standardised table; - if the digital television set-top box detects an absence of reception of the first standardised table, the digital television set-top box goes into a second operating mode according to which it triggers the recording of the broadcast according to the theoretical start time of the programme; characterised in that - the absence of the first standardised table being detected if a first period elapses without the digital television set-top box receiving the first standardised table; - the first standardised table, when the first service has one, being broadcast by a first frequency, said first frequency being used to broadcast the first service, the digital television set-top box calculates a limit time for connection at the first frequency according to the theoretical start time of the broadcast to be recorded and a safety time interval, the safety time interval being selected so that the digital television set-top box has, once connected at the first frequency, sufficient time before the theoretical start time of the programme to be recorded to receive the first standardised table and to process the information contained in the first standardised table, the limit time for connection at the first frequency being prior to the theoretical start time of the programme to be recorded; - if the digital television set-top box goes into the second operating mode before the time limit for connection, the digital television set-top box connects at the first frequency no later than said limit time for connection; - if the digital television set-top box goes into the second operating mode at the limit time for connection or after the limit time for connection, the digital television set-top box connects at the first frequency as soon as it goes into the second operating mode. - if the digital television set-top box receives a first standardised table of the first service, the first standardised table comprising at each instant a first data frame relating to a first programme being broadcast on the first service and a second data frame relating to a second programme broadcast on the first service directly after the first programme, each data frame relating to a programme comprising an identifier of said programme, the digital television set-top box goes into a first operating mode in which it triggers the recording of the programme to be recorded according to a detection of the identify of said programme in the first standardised table; - if the digital television set-top box detects an absence of reception of the first standardised table, the digital television set-top box goes into a second operating mode according to which it triggers the recording of the broadcast according to the theoretical start time of the programme; characterised in that - the absence of the first standardised table being detected if a first period elapses without the digital television set-top box receiving the first standardised table; - the first standardised table, when the first service has one, being broadcast by a first frequency, said first frequency being used to broadcast the first service, the digital television set-top box calculates a limit time for connection at the first frequency according to the theoretical start time of the broadcast to be recorded and a safety time interval, the safety time interval being selected so that the digital television set-top box has, once connected at the first frequency, sufficient time before the theoretical start time of the programme to be recorded to receive the first standardised table and to process the information contained in the first standardised table, the limit time for connection at the first frequency being prior to the theoretical start time of the programme to be recorded; - if the digital television set-top box goes into the second operating mode before the time limit for connection, the digital television set-top box connects at the first frequency no later than said limit time for connection; - if the digital television set-top box goes into the second operating mode at the limit time for connection or after the limit time for connection, the digital television set-top box connects at the first frequency as soon as it goes into the second operating mode.